Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] ExtendedLibrary sample
[Teneo] ExtendedLibrary sample [message #424623] Fri, 31 October 2008 13:12 Go to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Hi,

I played the Library tutorial. Now, I moved to the ExtendedLibrary model.
I initialized the database from the wizard, I created a library with a
book and a writer. Great it works even if I got an issue with feature map
;)

Here are the tables created by the automatic OR mapping made by Hibernate.
addressable
borrower_borrowed
item
lendable
library_people
videocassette_cast
writer_books.

First question : which is the property name to get one table per
meta-class ? I've had a look at the documentation but I'm a newbie with
teneo & hibernate, thus I'm a bit lost....

Second question : with this OR mapping, when I open .ehb file that
corresponds to my database, the open editor is empty. :( Nevertheless,
data are always store in the database...
If I use the wizard again, I've got the same result. I was expecting two
librairies at the same level.
With the simple Library model, it works. Hence, I was wondering what I
missed ?

Any help would be appreciated.
Stephane.
Re: [Teneo] ExtendedLibrary sample [message #424624 is a reply to message #424623] Fri, 31 October 2008 13:20 Go to previous message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Stéphane Fournier wrote:

> Hi,

> I played the Library tutorial. Now, I moved to the ExtendedLibrary model.
> I initialized the database from the wizard, I created a library with a
> book and a writer. Great it works even if I got an issue with feature map
> ;)

> Here are the tables created by the automatic OR mapping made by Hibernate.
> addressable
> borrower_borrowed
> item
> lendable
> library_people
> videocassette_cast
> writer_books.

> First question : which is the property name to get one table per
> meta-class ? I've had a look at the documentation but I'm a newbie with
> teneo & hibernate, thus I'm a bit lost....

I figured out the property PersistenceOptions.INHERITANCE_MAPPING rather
than PersistenceMappingOptions.INHERITANCEMAPPING as mentionned in the
help center ;)

> Second question : with this OR mapping, when I open .ehb file that
> corresponds to my database, the open editor is empty. :( Nevertheless,
> data are always store in the database...
> If I use the wizard again, I've got the same result. I was expecting two
> librairies at the same level.
> With the simple Library model, it works. Hence, I was wondering what I
> missed ?

> Any help would be appreciated.
> Stephane.
Previous Topic:[Teneo] FeatureMap bug ?
Next Topic:ModificationTrackingAdapter criteria doesn't use isTouch
Goto Forum:
  


Current Time: Fri Apr 26 16:23:19 GMT 2024

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

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

Back to the top