-->
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.  [ 3 posts ] 
Author Message
 Post subject: Accessing attributes directly
PostPosted: Tue Aug 30, 2005 2:05 pm 
Newbie

Joined: Tue Aug 30, 2005 1:57 pm
Posts: 1
Hi,

I've got a problem with my POJOs. I'd like to access the attributes directly without using my setter-methods. In the documentation, there is written several times that it is possible to do that, but after having searched half the day, I haven't found how to do so.

Can anybody help me, please?

Thanks a lot,

Felix


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 30, 2005 3:15 pm 
Senior
Senior

Joined: Tue Jan 11, 2005 5:03 pm
Posts: 137
Location: Montreal, Quebec
You have to put this in your mapping:

<hibernate-mapping default-access="field">

Hope its help.

Etienne.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 30, 2005 3:17 pm 
Expert
Expert

Joined: Thu Dec 04, 2003 12:36 pm
Posts: 275
Location: Bielefeld, Germany
<hibernate-mapping default-access="field">

See:
http://www.hibernate.org/hib_docs/v3/re ... on-mapping

Best regards
Sven

_________________
Please don't forget to give credit, if this posting helped to solve your problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.