Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] @OnDelete Hibernate annotation not supported
[Teneo] @OnDelete Hibernate annotation not supported [message #602794] Tue, 20 February 2007 01:44
Michael Kanaley is currently offline Michael KanaleyFriend
Messages: 89
Registered: July 2009
Member
I am attempting to set <key on-delete="cascade"> in the Hibernate mapping
file for a Many-To-Many association. Here is the description of this:

http://www.hibernate.org/hib_docs/v3/reference/en/html_singl e/#mapping-declaration-key

When I try to declare the annotation with:

<eAnnotations source="teneo.jpa">

<details key="appinfo" value="@OnDelete(action=OnDeleteAction.CASCADE)"/>

</eAnnotations>

I get the exception at the end of this message.

Is there any way to set this mapping with Teneo?

Thanks,

-mike

SEVERE: No eclass found with name OnDelete

org.eclipse.emf.teneo.annotations.parser.AnnotationParserExc eption: No
eclass found with name OnDelete

at
org.eclipse.emf.teneo.annotations.parser.ComplexNode.convert (ComplexNode.java:70)

at
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter.processAnnotatedModelElement(EAnnotationParserImporte r.java:128)

at
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter.process(EAnnotationParserImporter.java:87)

at
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter.process(EAnnotationParserImporter.java:75)

at
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter.process(EAnnotationParserImporter.java:66)

at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:135)

at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:399)

at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:387)

at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:162)

at
test.com.tibco.atlas.auth.RealmUtils.createSessionFactory(Re almUtils.java:35)

at
test.com.tibco.atlas.auth.matrix.usermanager.TestAddUser.get UserManagerService(TestAddUser.java:30)

at
test.com.tibco.atlas.auth.usermanager.AbstractUserManagerSer viceTest.createDefaultRoles(AbstractUserManagerServiceTest.j ava:44)

at
test.com.tibco.atlas.auth.usermanager.AbstractTestAddUser.te stAddUserWithRoles(AbstractTestAddUser.java:191)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at junit.framework.TestCase.runTest(TestCase.java:154)

at junit.framework.TestCase.runBare(TestCase.java:127)

at junit.framework.TestResult$1.protect(TestResult.java:106)

at junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:118)

at junit.framework.TestSuite.runTest(TestSuite.java:208)

at junit.framework.TestSuite.run(TestSuite.java:203)

at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:128)

at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)

at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)

at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)

at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)

at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196)
Previous Topic:JET2 with oaw features
Next Topic:Sharing edit domain + Synchronization
Goto Forum:
  


Current Time: Thu Apr 18 12:39:21 GMT 2024

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

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

Back to the top