Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Nullable does not work
Nullable does not work [message #616020] Thu, 27 March 2008 20:24
Manfred Hahn is currently offline Manfred HahnFriend
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=&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: Mon Jun 14 21:56:28 GMT 2021

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

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

Back to the top