File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes hibernate codegen and toString Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "hibernate codegen and toString" Watch "hibernate codegen and toString" New topic
Author

hibernate codegen and toString

Gabor Beres
Greenhorn

Joined: Dec 21, 2004
Posts: 21
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hibernate codegen and toString