-->
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: Generating POJOs with annotations over properties
PostPosted: Wed Nov 18, 2009 12:00 pm 
Newbie

Joined: Wed Nov 18, 2009 11:49 am
Posts: 2
Hi,

I produce POJOs with eclipse hibernate plug-in from my database. But it produces annotations over get* functions like;

@Id
@Column(name = "ID_PATIENT_CLASS", unique = true, nullable = false, precision = 10, scale = 0)
public long getIdPatientClass() {
return this.idPatientClass;
}

But I'd like to produce it over properties like;

@Id
@Column(name = "ID_PATIENT_CLASS", unique = true, nullable = false, precision = 10, scale = 0)
private long idPatientClass;

Is a way ( or a tutorial preferred :) ) to generete annotations over properties ? Thanks for all answers.


Top
 Profile  
 
 Post subject: Re: Generating POJOs with annotations over properties
PostPosted: Thu Nov 19, 2009 4:18 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Answered in your other post.
https://forum.hibernate.org/viewtopic.php?f=6&t=1001023

_________________
Sukirtha


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.