Home » Modeling » EMF » [CDO Hibernate] not-null property references a null or transient value
[CDO Hibernate] not-null property references a null or transient value [message #549684] |
Tue, 27 July 2010 14:33 |
Bastien Messages: 44 Registered: March 2010 |
Member |
|
|
Hi,
I am having problems when I try to commit a model.
When I manipulate it locally and as an EMF resource I don't have any problem so I presume it's valid.
However, when I try to commit it on my cdo server I have this error:
Quote: | [ERROR] not-null property referenceus a null or transient value: StringValue.vt_data
org.hibernate.PropertyValueException: not-null property references a null or transient value: StringValue.vt_data
at org.hibernate.engine.Nullability.checkNullability(Nullabilit y.java:95)
at org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:313)
at org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:204)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:130)
|
Here is the smallest model which reproduces the error:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SpreadsheetMLSimplified:Workbook xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SpreadsheetMLSimplified="http://SpreadsheetMLSimplified">
<wb_worksheets name="Segments">
<ws_table>
<t_cols index="1" autoFitWidth="true" width="100.0"/>
<t_rows index="1">
<r_cells>
<c_data>
<value xsi:type="SpreadsheetMLSimplified:StringValue" value="Code"/>
</c_data>
</r_cells>
</t_rows>
</ws_table>
</wb_worksheets>
</SpreadsheetMLSimplified:Workbook>
I can't provide you the metamodel because of the forum restrictions (no attachments).
What would be the cause of this exception ?
I'm using CDO check-out from cvs (R_3_0_GA branch) with hibernate 3.3.2
Regards,
Bastien.
[Updated on: Tue, 27 July 2010 14:40] Report message to a moderator
|
|
| |
Re: [CDO Hibernate] not-null property references a null or transient value [message #549813 is a reply to message #549684] |
Wed, 28 July 2010 05:35 |
|
This is a multi-part message in MIME format.
--------------090604070506050001010105
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Bastien,
"R_3_0_GA" is the *tag* of the 3.0 release version and it will never move. If you want to checkout from the maintenance *branch* please use "R3_0_maintenance".
Cheers
/Eike
Contact: http://www.esc-net.de Blogger <http://thegordian.blogspot.com>Twitter <http://twitter.com/eikestepper>Linkedin <http://de.linkedin.com/in/eikestepper>Xing <http://www.xing.com/profile/Eike_Stepper>
Article: What exactly is inside that p2 repository? < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>
I'm going to Eclipse Summit Europe 2010 <http://www.eclipsesummit.org/>
Am 27.07.2010 16:33, schrieb Bastien:
> Hi,
> I am having problems when I try to commit a model.
> When I manipulate it locally and as an EMF resource I don't have any problem so I presume it's valid.
> However, when I try to commit it on my cdo server I have this error:
>
> Quote:
>> [ERROR] not-null property referenceus a null or transient value: StringValue.vt_data
>> org.hibernate.PropertyValueException: not-null property references a null or transient value: StringValue.vt_data
>> at org.hibernate.engine.Nullability.checkNullability(Nullabilit y.java:95)
>> at org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:313)
>> at org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:204)
>> at org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:130)
>
>
> What would be the cause of this exception ?
> I'm using CDO check-out from cvs (R_3_0_GA branch) with hibernate 3.3.2
>
> Regards,
> Bastien.
--------------090604070506050001010105
Content-Type: multipart/related;
boundary="------------080108030000070406030304"
--------------080108030000070406030304
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Bastien,<br>
<br>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
"R_3_0_GA" is the *tag* of the 3.0 release version and it will never
move. If you want to checkout from the maintenance *branch* please
use "R3_0_maintenance".<br>
<br>
<!--WISESTAMP_SIG_73859_START--><span style="color: black;">
<div dir="ltr">
<div>Cheers<br>
/Eike<br>
<br>
</div>
<div style="padding: 5px 0pt; font-family: arial,sans-serif;
font-size: 13.3px;"><span style="color: gray;">Contact: <a
href="http://www.esc-net.de">http://www.esc-net.de</a></span>
<a href="http://thegordian.blogspot.com" style="padding: 0pt
2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part1.05000205.06060308@esc-net.de" alt="Blogger"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a><a
href="http://twitter.com/eikestepper" style="padding: 0pt
2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part2.05030905.03000400@esc-net.de" alt="Twitter"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a><a
href="http://de.linkedin.com/in/eikestepper" style="padding:
0pt 2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part3.07060906.07090805@esc-net.de"
alt="Linkedin" style="vertical-align: middle;
padding-bottom: 5px;" border="0" height="16" width="16"></a><a
href="http://www.xing.com/profile/Eike_Stepper"
style="padding: 0pt 2px; color: blue; font-size: 10pt;"
_service=""><img
src="cid:part4.02070907.07040108@esc-net.de" alt="Xing"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a></div>
<div style="color: gray; font-size: 13.3px; padding-bottom:
5px;">Article: <span style="color: blue; text-decoration:
underline;"><a
href=" http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html"
undefined="">What exactly is inside that p2 repository?</a></span></div>
<div><br>
<a href="http://www.eclipsesummit.org/"><img
src="cid:part5.03030505.00000809@esc-net.de" alt="I'm
going to Eclipse Summit Europe 2010" border="0"
height="100" width="130"></a>
<br>
<br>
</div>
</div>
</span><!--WISESTAMP_SIG_73859_END--><br>
<br>
Am 27.07.2010 16:33, schrieb Bastien:
<blockquote cite="mid:i2mqo0$4fl$1@build.eclipse.org" type="cite">Hi,
<br>
I am having problems when I try to commit a model.
<br>
When I manipulate it locally and as an EMF resource I don't have
any problem so I presume it's valid.
<br>
However, when I try to commit it on my cdo server I have this
error:
<br>
<br>
Quote:
<br>
<blockquote type="cite">[ERROR] not-null property referenceus a
null or transient value: StringValue.vt_data
<br>
org.hibernate.PropertyValueException: not-null property
references a null or transient value: StringValue.vt_data
<br>
at
org.hibernate.engine.Nullability.checkNullability(Nullabilit
y.java:95)
<br>
at
org.hibernate.event.def.AbstractSaveEventListener.performSav
eOrReplicate(AbstractSaveEventListener.java:313)
<br>
at
org.hibernate.event.def.AbstractSaveEventListener.performSav
e(AbstractSaveEventListener.java:204)
<br>
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGe
neratedId(AbstractSaveEventListener.java:130)
<br>
</blockquote>
<br>
<br>
What would be the cause of this exception ?
<br>
I'm using CDO check-out from cvs (R_3_0_GA branch) with hibernate
3.3.2
<br>
<br>
Regards,
<br>
Bastien.
<br>
</blockquote>
</body>
</html>
--------------080108030000070406030304
Content-Type: image/png;
name="blogger.png"
Content-Transfer-Encoding: base64
Content-ID: <part1.05000205.06060308@esc-net.de>
Content-Disposition: inline;
filename="blogger.png"
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/I NwWK6QAAABl0
RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAADkUExURf9xEv9m AP////9lAP+Q
SP9kAP9jAP9fAP9nAf9vD//x5/9hAP/iz/9iAP9eAP/s4P9vEP9yEv9qAP9q B/+LRP+we/90
I/+RSP/z6/+jZv/y6P+8kP/59f5yE//awf/Ttv9hAf9nAv/17v+4if9sC/9o BP+bWP/r3v/k
0v+wfP+QRv/o2f9gAP+OQ/93HP/l0/+0gv/Rsv/9/P/j0P+pcP+0hf/dx//D m//+/v+td/9o
AP+NQv/Yvf+zgv/x6P/q2/9xG//p2f9pAP/s3//8+fxxE//ex/+AK/9oCP/j 0f/Uuv///4Xw
StcAAABMdFJOU/////////////////////////////////////////////// ////////////
/////////////////////////////////////////wCejeTMAAAAsklEQVR4 2kSP1w6DMBAE
7cMGQg0hvffee++d//+f2IaIeTlppNXtIo88UAjxEIlhjCUG5lwJQuwoulqh FuUGcWGSiTF7
bt40EEoXBKtyIPQS5PffFqyHlhCS2obTK5kDmJ8lXxgA0zsPXer0L3zSUVmI D9ip3SC+hKwQ
2CxCtXYYL25gu1S8bf4jib5fTM+MNE079jom/+KwJUojwnAVifcQ46jM4M23 BHmkEK53iPcT
YACE/Q4KzoVQVwAAAABJRU5ErkJggg==
--------------080108030000070406030304
Content-Type: image/png;
name="twitter.png"
Content-Transfer-Encoding: base64
Content-ID: <part2.05030905.03000400@esc-net.de>
Content-Disposition: inline;
filename="twitter.png"
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/ AP+gvaeTAAAA
CXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAABxUlE QVQ4y4WTMW4U
QRBFX3X3zoy8FgZphTCYAEg4gAPEYbgBJEgEXIALkHMfAjIwItnAAfLK2JYB r3dmuj7BzI5m
2WBLqqzq//q/fxt9NTmrzo7MCIhgRpWSsaMSgEta5czcjYtWTKPxfALZXTEE 2wmAxLXD11VL
BZy2MAuJB/iuA3oAoJb4lUUCVkAGTM5t06gjATMjBiPFaFsADvx1MTFoBd/q zHkMeLcLgCEe
JqjbrCJ1IAkghGDz20Z/XEzMMMTnZTsSYANMAl7fq7YlZOBaUCCk4WowwyRA mBmL7CxcmwDu
rh+rzKU71YhQ/dnr8VbiaRF4MgmbAAZkxJU7lRk3Wby5W3FcJlbSICAjZjFS jJ42rSXWgoWL
fYPfLvaCMTVxJ0XoJTmQ/stF6GPABDhzcepi7uJ74yQDuXcDErjjGhkwNvHx xCjMOMkCg3eX
S85zyVEMtGt24GWVxvsM5yi3+nBV8/7iBmJv0gaZQMZhNL4cHXBYdDkY7HQL vD0oebVfQuud
a8FGHSAaP1vnpMmbHgDEECwafLq/x8fZlGfJKCVKiapvXLyoEsdl3JYwBMpd uW1YEjlz4aMh
AY+iURiU/Vf/B6EE4kjfs5YLAAAAAElFTkSuQmCC
--------------080108030000070406030304
Content-Type: image/png;
name="linkedin.png"
Content-Transfer-Encoding: base64
Content-ID: <part3.07060906.07090805@esc-net.de>
Content-Disposition: inline;
filename="linkedin.png"
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/ AP+gvaeTAAAA
CXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAACGklE QVQ4y6WTO2sU
URTHf3dmdp0kTnZJzErSrPjKYqNY2GljodhoLRLB1sLCD2DrZxAsfCAE/AaC grY+SBQSFTSC
xizGzZ3MTiYz92UxY5KNYuOBP+eew/3/73lwxfWHT9yjuR8YL0CwyxygAAPo Cqr0ntFcvjBB
cH++x8WzJzm8v/EnWVdks0PEgNWO95/XePD4HZ4ADk6MAhD6Hs26/08yBjwr ODrZBK0JADyv
LP7GsX2Evse9xR5Lsvgr+XfsO7ctoKwj9AWh7wEQIFCF+3sFGjCmgiJwQFwY Yge3X3cZrwXM
r2SDg9tJ1rokaw1alRXI3NAO61w60AAHTkE7qtNu1PjSUywsb3L60AgjNcHz hZgXb39WApoA
C3FqsIGjMxYC8OZbxlQU0GmFTLdCznWireV0pobYSDKevuzilMZDg0wN/cxu XdrMLVqX53TT
cu3OJ87cmmdlrQBgemoYKTMwqhSI+4Z0QMBhjANgcTnj1UdJHGd8Xc0AmBit Ecu0moGGODH0
h7cF8tyidSmgjSWWG6AUWpkypw1xLwXA4z8tQINcN/T3moEWtLZbr0mZQV5s 55RFJuU8RHR1
1iWtIzQ8nxOtIVCw9D2lWbM06w4ZZ8wtrEJRcLw9TDMUyKRg7kOPSHQR0ZVZ lyRjMDkOOVAU
FfLS57viHRaJLsHM+THuPtuDUgLTW2U0X672t47rrw82vOu/z9w8xS+MkDzV Boy6+QAAAABJ
RU5ErkJggg==
--------------080108030000070406030304
Content-Type: image/png;
name="xing.png"
Content-Transfer-Encoding: base64
Content-ID: <part4.02070907.07040108@esc-net.de>
Content-Disposition: inline;
filename="xing.png"
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAAsT AAALEwEAmpwY
AAABsklEQVR42mP8//8/AymAEb+G1x9333hU9fffZy52ZTONrQQ0/P7z7sLd hJfvN7Mw80mL
ROkqTodqAIKvv379+fuXhZmZh50dpv7f49dLLt1LYWD4ryRZCETsrJIIDYdu 3y5fu16AizPE
0CTFzgoo8fPXoxPX/T9/v8DHbWCito6LXRHFDw/evnXpm3D39Ws1Eck9xVmy wqLP3/SevlXC
ysKtLtuoJFmMxdObL17ymzqN8S9LnZddua/VrUcWD149FRNwNFFby8oiiEXD itNnImfN5WTi
nBhu7Gvw5OLdiv+MQnqKU6WEI7AE6+vPnx17+68+fmGrJL0wRe/rl/jbL94r isfqKs1kZuJE
1/Dt16/27TtatmzjYeZcnuZpqnDi3J16FmZxYDhKCAViibiVp8+Ur1v39N0H X12DFRkJ33/u
O3LVk+E/i5xYqq7iNCwaXn769PLTZ0ZGBnFePjE+3j9/3155kPvk9XIudgV9 5XnCfI6Ek8a7
T4dO3vD4+++HlHC4kepywhr+/P0ITEIPXk5jZxXTVpgE1EY48X36euHs7fBv P+8CVespzYGH
FSOpyRsAAuDh4a3m5z0AAAAASUVORK5CYII=
--------------080108030000070406030304
Content-Type: image/gif;
name="130x100_going.gif"
Content-Transfer-Encoding: base64
Content-ID: <part5.03030505.00000809@esc-net.de>
Content-Disposition: inline;
filename="130x100_going.gif"
R0lGODlhggBkANU/AAI6m5unzAFEnevmBBdYp26MwSdhrezv9ShbpkdJl8zT 5iosTk5RczdZ
pUxws4+Vujlhq296sauxNTZpsY6cUjtLl0pBjWmLbMzM3yVUngxDnzQ/j1B0 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UVWLUB4BT
AQDVeO3UG9AAQyAJV+3JzAzKxFYUEdACxAYXNJ0Dhx0B/dwCuQvT8wMXTQ0X TJ3XTX0Uli1v
mJ3Zlg0AoDAEVPPXydzPpF3apg3HT9RonL3arN3aTo03W9AAVi3a+nzatm3a L1DYcOzavN3b
T70BKcAFWnrPtL3Mt33cyK3avr3crL0B0roHDgAAs+3GgU3dyX3dt83c2r3a GwAAJL0HQrAD
ZWDV2F3e173d6I3XGzAGOwDeWvAAPJAEq6vG9F3f9n3f+J3frWsMAMADD+De bHAAP02sBF7g
Bn7gCH7gEQCd7h0EADs=
--------------080108030000070406030304--
--------------090604070506050001010105--
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO Hibernate] not-null property references a null or transient value [message #549844 is a reply to message #549750] |
Wed, 28 July 2010 08:26 |
Bastien Messages: 44 Registered: March 2010 |
Member |
|
|
Hi Martin and Eike,
thanks for your reply, here are the relevant part of my metamodel and generated mapping. I still have the problem even after I changed to "R3_0_maintenance" branch , following Eike's advice.
Regards,
Bastien.
<eClassifiers xsi:type="ecore:EClass" name="ValueType" abstract="true"
<eStructuralFeatures xsi:type="ecore:EReference" name="vt_data" ordered="false"
lowerBound="1" eType="#//Data" eOpposite="#//Data/value"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StringValue" eSuperTypes="#//ValueType">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" ordered="false"
lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Data">
<eStructuralFeatures xsi:type="ecore:EReference" name="d_cell" ordered="false"
lowerBound="1" eType="#//Cell" eOpposite="#//Cell/c_data"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="value" ordered="false"
lowerBound="1" eType="#//ValueType" containment="true" eOpposite="#//ValueType/vt_data"/>
</eClassifiers>
<class entity-name="ValueType" abstract="true" lazy="true" table="`valuetype`">
<meta attribute="eclassName">ValueType</meta>
<meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
<tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
<tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
<id type="long" name="idcol" column="idcol" access="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSyntheticIdPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<property name="resourceID" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDUserType">
<column name="resource_id"/>
</property>
<property name="containerID" type="string">
<column name="container_id"/>
</property>
<property name="version" type="java.lang.Integer">
<meta attribute="version">true</meta>
<column name="version"/>
</property>
<one-to-one name="vt_data" entity-name="Data" cascade="merge,persist,save-update,lock" lazy="false" property-ref="value" constrained="true"/>
</class>
<joined-subclass entity-name="StringValue" abstract="false" lazy="true" extends="ValueType" table="`stringvalue`">
<meta attribute="eclassName">StringValue</meta>
<meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
<tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
<tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
<key>
<column name="`valuetype_e_id`"/>
</key>
<property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`value`"/>
</property>
</joined-subclass>
<class entity-name="Data" abstract="false" lazy="true" table="`data`">
<meta attribute="eclassName">Data</meta>
<meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
<tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
<tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
<id type="long" name="idcol" column="idcol" access="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSyntheticIdPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<property name="resourceID" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDUserType">
<column name="resource_id"/>
</property>
<property name="containerID" type="string">
<column name="container_id"/>
</property>
<property name="version" type="java.lang.Integer">
<meta attribute="version">true</meta>
<column name="version"/>
</property>
<one-to-one name="d_cell" entity-name="Cell" cascade="merge,persist,save-update,lock" lazy="false" property-ref="c_data" constrained="true"/>
<many-to-one name="value" entity-name="ValueType" cascade="all" not-null="true" lazy="false" insert="true" update="true" unique="true"/>
</class>
|
|
|
Re: [CDO Hibernate] not-null property references a null or transient value [message #549879 is a reply to message #549844] |
Wed, 28 July 2010 10:01 |
|
Am 28.07.2010 10:26, schrieb Bastien:
> Hi Martin and Eike,
> thanks for your reply, here are the relevant part of my metamodel and generated mapping. I still have the problem even after I changed to "R3_0_maintenance" branch , following Eike's advice.
Well, 3.0 maintenance has just begun and there are just a handful of fixes between 3.0GA and R3_0_maintenance. It was more a general hint ;-)
Cheers
/Eike
>
> Regards,
> Bastien.
>
> <eClassifiers xsi:type="ecore:EClass" name="ValueType" abstract="true"
> <eStructuralFeatures xsi:type="ecore:EReference" name="vt_data" ordered="false"
> lowerBound="1" eType="#//Data" eOpposite="#//Data/value"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StringValue" eSuperTypes="#//ValueType">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" ordered="false"
> lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Data">
> <eStructuralFeatures xsi:type="ecore:EReference" name="d_cell" ordered="false"
> lowerBound="1" eType="#//Cell" eOpposite="#//Cell/c_data"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="value" ordered="false"
> lowerBound="1" eType="#//ValueType" containment="true" eOpposite="#//ValueType/vt_data"/>
> </eClassifiers>
>
>
>
> <class entity-name="ValueType" abstract="true" lazy="true" table="`valuetype`">
> <meta attribute="eclassName">ValueType</meta>
> <meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
> <tuplizer entity-mode="pojo" class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
> <tuplizer entity-mode="dynamic-map" class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
> <id type="long" name="idcol" column="idcol" access=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSy ntheticIdPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <property name="resourceID" type=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOID UserType ">
> <column name="resource_id"/>
> </property>
> <property name="containerID" type="string">
> <column name="container_id"/>
> </property>
> <property name="version" type="java.lang.Integer">
> <meta attribute="version">true</meta>
> <column name="version"/>
> </property>
> <one-to-one name="vt_data" entity-name="Data" cascade="merge,persist,save-update,lock" lazy="false" property-ref="value" constrained="true"/>
> </class>
> <joined-subclass entity-name="StringValue" abstract="false" lazy="true" extends="ValueType" table="`stringvalue`">
> <meta attribute="eclassName">StringValue</meta>
> <meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
> <tuplizer entity-mode="pojo" class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
> <tuplizer entity-mode="dynamic-map" class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
> <key>
> <column name="`valuetype_e_id`"/>
> </key>
> <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
> <column not-null="true" unique="false" name="`value`"/>
> </property>
> </joined-subclass>
> <class entity-name="Data" abstract="false" lazy="true" table="`data`">
> <meta attribute="eclassName">Data</meta>
> <meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
> <tuplizer entity-mode="pojo" class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
> <tuplizer entity-mode="dynamic-map" class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
> <id type="long" name="idcol" column="idcol" access=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSy ntheticIdPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <property name="resourceID" type=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOID UserType ">
> <column name="resource_id"/>
> </property>
> <property name="containerID" type="string">
> <column name="container_id"/>
> </property>
> <property name="version" type="java.lang.Integer">
> <meta attribute="version">true</meta>
> <column name="version"/>
> </property>
> <one-to-one name="d_cell" entity-name="Cell" cascade="merge,persist,save-update,lock" lazy="false" property-ref="c_data" constrained="true"/>
> <many-to-one name="value" entity-name="ValueType" cascade="all" not-null="true" lazy="false" insert="true" update="true" unique="true"/>
> </class>
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO Hibernate] not-null property references a null or transient value [message #549885 is a reply to message #549844] |
Wed, 28 July 2010 10:40 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Bastien,
The vt_data is mapped as a one-to-one which makes it a mandatory field for hibernate I guess. This is caused by the
lowerBound="1" and the opposite is set.
To confirm, in your case the vt_data is null? So Hibernate sees the null value, or is it not null and does Hibernate see
a wrong value?
gr. Martin
On 07/28/2010 10:26 AM, Bastien wrote:
> Hi Martin and Eike,
> thanks for your reply, here are the relevant part of my metamodel and
> generated mapping. I still have the problem even after I changed to
> "R3_0_maintenance" branch , following Eike's advice.
>
> Regards,
> Bastien.
>
> <eClassifiers xsi:type="ecore:EClass" name="ValueType" abstract="true"
> <eStructuralFeatures xsi:type="ecore:EReference" name="vt_data"
> ordered="false"
> lowerBound="1" eType="#//Data" eOpposite="#//Data/value"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StringValue"
> eSuperTypes="#//ValueType">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="value"
> ordered="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Data">
> <eStructuralFeatures xsi:type="ecore:EReference" name="d_cell"
> ordered="false"
> lowerBound="1" eType="#//Cell" eOpposite="#//Cell/c_data"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="value"
> ordered="false"
> lowerBound="1" eType="#//ValueType" containment="true"
> eOpposite="#//ValueType/vt_data"/>
> </eClassifiers>
>
>
>
> <class entity-name="ValueType" abstract="true" lazy="true"
> table="`valuetype`">
> <meta attribute="eclassName">ValueType</meta>
> <meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
> <tuplizer entity-mode="pojo"
> class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
>
> <tuplizer entity-mode="dynamic-map"
> class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
>
> <id type="long" name="idcol" column="idcol"
> access=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSy ntheticIdPropertyHandler ">
>
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <property name="resourceID"
> type=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOID UserType ">
>
> <column name="resource_id"/>
> </property>
> <property name="containerID" type="string">
> <column name="container_id"/>
> </property>
> <property name="version" type="java.lang.Integer">
> <meta attribute="version">true</meta>
> <column name="version"/>
> </property>
> <one-to-one name="vt_data" entity-name="Data"
> cascade="merge,persist,save-update,lock" lazy="false"
> property-ref="value" constrained="true"/>
> </class>
> <joined-subclass entity-name="StringValue" abstract="false" lazy="true"
> extends="ValueType" table="`stringvalue`">
> <meta attribute="eclassName">StringValue</meta>
> <meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
> <tuplizer entity-mode="pojo"
> class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
>
> <tuplizer entity-mode="dynamic-map"
> class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
>
> <key>
> <column name="`valuetype_e_id`"/>
> </key>
> <property name="value" lazy="false" insert="true" update="true"
> not-null="true" unique="false" type="java.lang.String">
> <column not-null="true" unique="false" name="`value`"/>
> </property>
> </joined-subclass>
> <class entity-name="Data" abstract="false" lazy="true" table="`data`">
> <meta attribute="eclassName">Data</meta>
> <meta attribute="epackage">http://SpreadsheetMLSimplified</meta>
> <tuplizer entity-mode="pojo"
> class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
>
> <tuplizer entity-mode="dynamic-map"
> class=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORe visionTuplizer "/>
>
> <id type="long" name="idcol" column="idcol"
> access=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSy ntheticIdPropertyHandler ">
>
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <property name="resourceID"
> type=" org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOID UserType ">
>
> <column name="resource_id"/>
> </property>
> <property name="containerID" type="string">
> <column name="container_id"/>
> </property>
> <property name="version" type="java.lang.Integer">
> <meta attribute="version">true</meta>
> <column name="version"/>
> </property>
> <one-to-one name="d_cell" entity-name="Cell"
> cascade="merge,persist,save-update,lock" lazy="false"
> property-ref="c_data" constrained="true"/>
> <many-to-one name="value" entity-name="ValueType" cascade="all"
> not-null="true" lazy="false" insert="true" update="true" unique="true"/>
> </class>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | | | | |
Re: [CDO Hibernate] not-null property references a null or transient value [message #550136 is a reply to message #550133] |
Thu, 29 July 2010 09:18 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Hans,
See my reply one minute before yours!
gr. Martin
On 07/29/2010 11:00 AM, Hans Meier wrote:
> Hi Bastien,
>
> the problem with your workaround is, if I change the model from:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="demo"
> nsURI="http://demo" nsPrefix="demo">
> <eClassifiers xsi:type="ecore:EClass" name="Animal">
> <eStructuralFeatures xsi:type="ecore:EReference" name="head"
> lowerBound="1" eType="#//Head"
> containment="true" eOpposite="#//Head/animal"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Head">
> <eStructuralFeatures xsi:type="ecore:EReference" name="animal"
> lowerBound="1"
> eType="#//Animal" eOpposite="#//Animal/head"/>
> </eClassifiers>
> </ecore:EPackage>
>
> to
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="demo"
> nsURI="http://demo" nsPrefix="demo">
> <eClassifiers xsi:type="ecore:EClass" name="Animal">
> <eStructuralFeatures xsi:type="ecore:EReference" name="head"
> lowerBound="1" eType="#//Head"
> containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Head"/>
> </ecore:EPackage>
>
> the generated interface "Head" misses the typed container getter
> getAnimal() and I have to use the untyped eContainer() method of the
> Head implementation class.
>
> Since XMI serialization also works without the workaround I still think
> it's a bug in Teneo, but I'd like to hear Martin's opinion on this.
>
> Regards,
> Hans
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | | | |
Goto Forum:
Current Time: Mon Sep 23 17:10:01 GMT 2024
Powered by FUDForum. Page generated in 0.05977 seconds
|