[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting generated ID by sequence

rabbiaqaswar do-not-reply at jboss.com
Mon Mar 5 06:03:11 EST 2007


try:


  | @Entity
  | public class Tsperson implements Serializable {
  | @Id
  | @Column(name="TSPERSON_ID", nullable = false)
  | @SequenceGenerator(name = "tsperson_sequence", sequenceName = "SEQ_TSPERSON_ID")
  | @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="tsperson_sequence")
  | private Long tspersonId;
  | 

why do you need to flush data?

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

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



More information about the jboss-user mailing list