This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate codegen and toString

 
Gabor Beres
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!

I have a little problem with hibernate.
i have a hibernate mapping which has a name property. I want (just)this property to show in my hbm2java generated Entity.
Now it shows that:

package.Object@44cbbe[id=2,name=myname]

and i want that:

myname

i used <meta attribute="use-in-tostring">true</meta> to annotate the name property.

thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic