[ Teneo ] SDO class name problem [message #608702] |
Wed, 11 July 2007 19:09 |
Jason Henriksen 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
|
|
|
Powered by
FUDForum. Page generated in 0.03439 seconds