-->
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 to place the Hibernate annotation
PostPosted: Wed Aug 01, 2007 7:02 pm 
Newbie

Joined: Fri Jul 13, 2007 4:41 pm
Posts: 6
where to place the Hibernate annotation?

1. the fields or the method?
2.what is the difference between these two different way?


I did the annotation in the method, then removed and placed in the fields, then I got an error showing : sql grammer error.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 01, 2007 9:23 pm 
Newbie

Joined: Mon Jul 30, 2007 10:12 pm
Posts: 13
Location: Orust/Sweden
There are no differens. You can place the annotations in the fields or in the methods. If you don't want a field to be persistent then mark it with the transient keyword.

Can you please post the sql grammar error so we can take a look at it.

// Mathias


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.