Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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