Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue in hbm files

 
prasad kakani
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Techies,

I am facing some problem with hbm files. There are 3 tables and respective hbm files.

screentable - columns - screenid(PK),screencode
columntable - columns - columnid(PK),screenid,columncode
columnlangtable -columns - columnid(PK,FK),columnlabel.

From these tables i need to get the columnlabel and columncode from these table after join operation. These are class files and hbm files i have written.

Screentable.java
------------------
private int screenId,screencode;
private Columntable columntable ;

screentable.hbm.xml
-------------------------

Columntable.java --
-------------------
private int columnid,screenid,columncode;
//getter and setter methods.
Columntable.hbm.xml
-------------------------
ColumnLangtable.java
------------------------
private int columnid,private string columnlabel;
hbm.xml
---------

When i try to run this application i am getting org.hibernate.PropertyNotFoundException: Could not find a getter for columnid in class com.exm.Screentable.It is looking into the Screentable ,but it should actually look into the ColumnLangtable where as it already defined..

Can you suggest me what am i doing wrong over here?

Thanks
vara.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic