Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Nullable does not work
Nullable does not work [message #616020] Thu, 27 March 2008 16:24
Eclipse UserFriend
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=&quot;test&quot;
nullable=&quot;false&quot;)"/>
</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
Previous Topic:Extra Primary Key Join Column
Next Topic:Nullable does not work
Goto Forum:
  


Current Time: Tue Jul 01 18:41:04 EDT 2025

Powered by FUDForum. Page generated in 0.03093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top