openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruslan <>
Subject Foreign key field doesn't set populated in descendant class in Join Inheritance
Date Wed, 19 Nov 2008 23:06:45 GMT
Hi guys.

I have a question about join table inheritance. In few words the problem is
that foreign key field doesn't get set in descendant class in Join

I have 3 tables: authors, books and electronic_books.

Here is SQL script:


In my test case I have one author who has 3 books - 2 regular books and one

When I fetch that single instance of AuthorsEntity I see that for some
reason field of instance of an object
ElectronicBooksEntity equals null. But remaining 2 instances of base class
BooksEntity have properly set 'author'. Initially I thought ALL fields of
base class won't be set but it turns out and
ElectronicBooksEntity.title have valid values.

Am I missing something in definition of my descendant class ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message