[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - field vs property based persistence

ziphyre do-not-reply at jboss.com
Mon Mar 3 04:53:37 EST 2008


Hi,

Is it possible to use property based persistence while annotating private fields?
Something like:

@Entity
  | public class Foo {
  | 
  |     @Id @GeneratedValue
  |     private Long id;
  | 
  |     ....
  | 
  |     public Long getId() { ... }
  |     public void setId() { ... }
  | }

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133570#4133570

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133570



More information about the jboss-user mailing list