Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Why tables for abstract classes with TablePerClass inheritance are created?
Why tables for abstract classes with TablePerClass inheritance are created? [message #948359] Wed, 17 October 2012 21:18 Go to next message
Eclipse UserFriend
Hi,
Why table for an abstract class with inheritance strategy TablePerClass is created? Is not it that tables are created only for concrete classes for TAblePerClass inheritance strategy?

Rice
Re: Why tables for abstract classes with TablePerClass inheritance are created? [message #950045 is a reply to message #948359] Fri, 19 October 2012 11:22 Go to previous messageGo to next message
Eclipse UserFriend
Use a mapped superclass instead of marking it as an entity if you do not want a table for that class. I've been told that from a JPA perspective, entities can be used within queries, while mapped supperclasses cannot. So all entities require associated tables or they cannot be put within queries. Even though an abstract entity cannot be instantiated, queries using it could return raw data or to filter other entity results.

Best Regards,
Chris
Re: Why tables for abstract classes with TablePerClass inheritance are created? [message #964666 is a reply to message #950045] Tue, 30 October 2012 13:56 Go to previous message
Eclipse UserFriend
This is a bug, please log the bug and vote for it. (ensure you are using the latest release first, as it may have been fixed already).
Previous Topic:MongoDB and passwords
Next Topic:DynamicEntity is not Serializable
Goto Forum:
  


Current Time: Thu Jul 17 02:53:43 EDT 2025

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

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

Back to the top