Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [ Teneo ] SDO class name problem
[ Teneo ] SDO class name problem [message #608702] Wed, 11 July 2007 19:09
Jason Henriksen is currently offline Jason HenriksenFriend
Messages: 231
Registered: July 2009
Senior Member
Hi Again,

So having sorted out how to make a Teno generated HBM get used, I found my
next difficulty. I'm using the genmodel to create SDO objects and when Teno
reads the sdo objects to build the mapping everything works great and I get
hbm that looks like this:

<class name="com.vsp.consumer.impl.ConsumerImpl"
entity-name="Consumer"
abstract="false" lazy="false" discriminator-value="Consumer"
table="`cmr3601t`">
<meta attribute="eclassName">Consumer</meta>

The key thing here is taht the name="com.vsp.consumer.impl.ConsumerImpl"

<class name="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"
entity-name="Consumer"
abstract="false" lazy="false" discriminator-value="Consumer"
table="`cmr3601t`">
<meta attribute="eclassName">Consumer</meta>

This blows up when I try to use this hbm because the data store
initialization expects DynamicEObjectImpl to have getters and setters for
all my fields in the same way that ConsumerImpl does.

I use the "Set SDO defaults" on the gen model before I generate the model
code since I have to have pojos for my clients to interact with. Is there
some similar configuration that I need to set for Teneo to put the correct
names in place?

If there's a feature enhancement to be done here, let me know. I'm looking
at the code as well, but I thought I'd ask since the solution isn't jumping
out at me.

I've gotten my local teneo version to put <comment> tags into the hbm from
the ecore. Once I can fix this and prove that that my objects will work,
I'll be about ready to submit that to you as well.

Jason Henriksen
Previous Topic:[ Teneo ] USE_MAPPING_FILE minor enhancement
Next Topic:[EMF Compare] Standalone run and in-memory-only objects
Goto Forum:
  


Current Time: Thu Apr 18 01:02:52 GMT 2024

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

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

Back to the top