-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Setting up mapping with dot-syntax?
PostPosted: Fri Oct 27, 2006 4:20 pm 
Newbie

Joined: Fri Oct 27, 2006 3:37 pm
Posts: 3
Hi,

I'm setting up Hibernate for the first time and wondering if one of my hbm.xml files can contain a column mapping with a name "object.beanname", for example <property name="object.membervar.whatever" column="whatever" type="string"/>

For example, I'd like to specify "user.name" rather than modifying my class to explicitly have getter/setter methods for 'name" that just get this information from the User member variable. My application uses WebWork which handles this nicely, instantiating objects as needed if the getter method returns null. Does this facility exist in Hibernate? A simple test failed and I didn't see any documentation on the site about this.

Thanks,
Greg


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 27, 2006 7:35 pm 
Newbie

Joined: Sat Jul 29, 2006 4:51 am
Posts: 11
Greg,

You can use access="field" with property declarations and many more....

Have a look at the Reference manual for hibernate:

http://www.hibernate.org/hib_docs/reference/en/html/mapping.html

-----------------------------------------------------
Nathan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.