This content has been marked as final.
Show 1 reply
-
1. Re: NoSuchObjectLocalException: Entity not found: primaryKey
bitman Nov 2, 2005 5:16 PM (in response to bitman)Found my own answer: Foreign keys need to be nullable. JBoss considers zero a valid primary key, while 'null' means 'no relation here'. So if the foreign key field is a Java long (little L), the default value will be zero, and will crash. If it's a Long (big L), the default value is null, and JBoss is happy.