-
Bug
-
Resolution: Obsolete
-
Major
-
JBossAS-4.0.4.GA, JBossAS-4.0.5.GA
-
None
-
windows xp, mysql 4.x
-
Workaround Exists
-
I have an attribute on the class.....
Class name is classA and the attribute is sequenceNumber.
Here is the annotation for that attribute for that class..
@Column(name="sequenceNumber",nullable=false)
public int getSequenceNumber()
{ return sequenceNumber; }When I generate ddl using hibernate tools, the generated schema has ' not null' for sequenceNumber field, which is PERFECT.
But when I let jboss/ejb3.0 create the tables and fields dynamically (when the app is deployed) , the sequenceNumber is set as ALLOW NULL , in the database which is NOT CORRECT.
I don't understand why would the behavior be different in different cases if jboss is using the same hibernate to create ddl at runtime.
Hope I'm clear.