Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Trouble using 'embedded' annotation
Trouble using 'embedded' annotation [message #606812] Tue, 29 May 2007 17:25
Eclipse UserFriend
Hi All,

I'm still having trouble making embedded objects work. I'm trying to get
VSPDate and VSPDateTime to appear in the table for my Network object which
extends the Persistent object. I see other simple fields from Persistent
show up. However the embeded columns from lastUpdateDateTime and
versionCreateDate do not appear in the database.

Thanks for any suggestions,

Jason Henriksen

<?xml version="1.0" encoding="UTF-8"?>
<p:persistence-mapping xmlns:p="http://www.eclipse.org/emft/teneo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.eclipse.org/emft/teneo
persistence-mapping-hibernate.xsd ">
<p:epackage namespace-uri="http://vsp.com/">
<!-- ignore the transport classes -->
<p:eclass name="CreateType"><p:transient /></p:eclass>
<p:eclass name="CreateResponseType"><p:transient /></p:eclass>
<p:eclass name="DeleteType"><p:transient /></p:eclass>
<p:eclass name="DeleteResponseType"><p:transient /></p:eclass>

<!-- make vspdate embeddable -->
<p:eclass name="VSPDateTime"> <p:embeddable/> </p:eclass>
<p:eclass name="VSPDate"> <p:embeddable/> </p:eclass>


<!-- embed the dates -->
<p:eclass name="Persistent">
<p:property name="lastUpdateDateTime">
<p:embedded/>
</p:property>
<p:property name="versionCreateDate">
<p:embedded/>
</p:property>
</p:eclass>



</p:epackage>
</p:persistence-mapping>
Previous Topic:[Teneo]JUnit stackoverflow
Next Topic:[Teneo] Enhancement using ENum literals in HQL queries...
Goto Forum:
  


Current Time: Sun Jul 06 09:10:43 EDT 2025

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

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

Back to the top