• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate metadata property problem

 
Gene Hilpert
Ranch Hand
Posts: 51
Eclipse IDE Hibernate Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm tring to get the column names for a class to use in a jtable. But when I call getPropertyNames from the factory I get the names except for the column that is used for the ID.

What am I missing?
Thanks
Here is the mapping and the call code:




when I run this I get
getColumnHeasingsf: 1
getColumnHeasingsf: 0:typedescription

p.s. I tried to put into the mapping file


but there is no change. Thanks again.
 
suren kumar
Greenhorn
Posts: 5
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
same problem for me how can i get the id also in the count
 
ntumba lobo
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the id is a special field so it has got a specific method
sessionFactory.getIdentifierPropertyName()

check the java doc for more details about the session factory
http://docs.jboss.org/hibernate/annotations/3.5/api/org/hibernate/metadata/ClassMetadata.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic