-->
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: Where do I have to place the annotations?
PostPosted: Wed Mar 03, 2010 4:11 am 
Beginner
Beginner

Joined: Wed Mar 03, 2010 4:06 am
Posts: 21
Hi,

do I have to place the annotation like @Id, @GeneratedValue, etc. in front of the class-attribute or do I have to annotate the corresponding getter-method? My book says that I have to annotate the getter-methods but I had some problems with that so I tried to use the other way by annotating the attribute and it worked perfectly so I'm a little bit confused. Hopefully somebody may give me some advice. Thanks a lot.

Jonny


Top
 Profile  
 
 Post subject: Re: Where do I have to place the annotations?
PostPosted: Wed Mar 03, 2010 5:25 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
https://forum.hibernate.org/viewtopic.php?f=1&t=973796&hilit=+field+or+property+access+


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.