[Teneo] ExtendedLibrary sample [message #424623] |
Fri, 31 October 2008 13:12 |
Stephane fournier 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 |
Stephane fournier 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.
|
|
|
Powered by
FUDForum. Page generated in 0.02606 seconds