-->
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: configure the location of @Id?
PostPosted: Tue Jun 22, 2010 5:41 am 
Newbie

Joined: Wed May 28, 2008 9:31 pm
Posts: 4
By default, the generated POJO code has the @Id located in front of getId() method, as following code shows:

@Id
@Column(name="ID", unique=true, nullable=false, insertable=true, updatable=true, precision=12, scale=0)
public long getId() {
return this.id;
}


I want to know whether there is some settings by which I can put the @Id in front of "private long id;".

thanks a lot in advance!


Top
 Profile  
 
 Post subject: Re: configure the location of @Id?
PostPosted: Wed Jun 23, 2010 9:18 pm 
Newbie

Joined: Wed May 28, 2008 9:31 pm
Posts: 4
vyemialyanchyk wrote:
this is possible todo with help of "custom templates" - for more details - use forum search.



:(, i searched, but had not found some example. only the post "https://forum.hibernate.org/viewtopic.php?f=6&t=1003858&p=2429868#p2429868", and in the post, his problem remains unsolved.


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.