This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
Automatic Optimistic Concurrency
Legacy and Hibernate1-2-M Mapping
Query not in source
HIBERNATE- "ORTOOL"
Hibernate - Mapping foreign keys tables