Return to Snippet

Revision: 36399
at November 21, 2010 21:44 by arunpjohny


Initial Code
@Id
@GeneratedValue(generator = "table_name_cid_gen")
@GenericGenerator(name = "table_name_cid_gen", strategy = "sequence", parameters = {
	@Parameter(name = "sequence", value = "table_name_cid_seq"),
	@Parameter(name = "unsaved-value", value = "0") })
@Column(name = "cid")
private int id;

Initial URL
http://forum.springsource.org/showthread.php?t=45036

Initial Description
Creating a annotated id field using Hibernate and JPA

Initial Title
JPA Annotated id field in Hibernate

Initial Tags

                                

Initial Language
Java