[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

kpiis do-not-reply at jboss.com
Tue Jun 5 02:50:21 EDT 2007


I use almost the same as mazz at jboss.com

@Entity
@SequenceGenerator(name = "SEQ_STORE", sequenceName = "name_seq")
....
@Id
	@Column
	@GeneratedValue(generator = "SEQ_STORE")
	public Long getId() {
		return id;
	}

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

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



More information about the jboss-user mailing list