[jboss-user] [JBoss Seam] - Long vs long for ID and InvalidStateException

damianharvey do-not-reply at jboss.com
Wed Oct 24 06:41:16 EDT 2007


I have a table with an auto-incrementing ID with a datatype of BIGINT(20). When SeamGen using 2.0.0.CR2 generates this entity it gives the ID a datatype of Long. 

When I try to persist an instance of this entity I get an InvalidStateException. 

If I change the entity setting the datatype of the ID to long (primitive) I have no problems.

Does anyone know what's up with that?

Cheers,

Damian.

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

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



More information about the jboss-user mailing list