[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Setting up an auto generated non-id column in JBoss

dekno do-not-reply at jboss.com
Wed Aug 29 18:02:30 EDT 2007


I am trying to set up a non-id column in my project that is auto generated, but it doesn't seem to be working with JBoss.  I am posting my code below to show what I am trying to do.  Can anyone tell me how to do this, please?

Thanks,
D

	@Id
	@SearchableId
	@Column(name = "sysId")
	private String sysId = UUID.randomUUID().toString();

	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "number")
	private int number;

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

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



More information about the jboss-user mailing list