Nullable does not work [message #616020] |
Thu, 27 March 2008 20:24 |
Manfred Hahn Messages: 64 Registered: July 2009 |
Member |
|
|
Hi Martin,
I try to set a column to not-null="true" in the hibernate mapping file by
setting an @Column annotation.
In the ecore file it looks like this:
<eAnnotations source="teneo.jpa">
<details key="appinfo" value="@Column(name="test"
nullable="false")"/>
</eAnnotations>
The property is a simple field in an abstract superclass. The name
attribute I set for test purposes (as the value implies..;-).
The hibernate mapping looks like this:
<column not-null="false" unique="false" name="`test`"/>
So the name attribute has been taken over, but the nullable attribute
didn't change anything.
I have tried the 'false' attribute value both with and without quotes.
Did I do something wrong?
With regards
Manfred
|
|
|
Powered by
FUDForum. Page generated in 0.02657 seconds