wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Consider Paul's rocket mass heater.
 
subject: hibernate codegen and toString
 
Similar Threads
Legacy and Hibernate1-2-M Mapping
Query not in source
HIBERNATE- "ORTOOL"
Automatic Optimistic Concurrency
Hibernate - Mapping foreign keys tables