Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:23:05+00:00 2026-06-13T16:23:05+00:00

AppEngine only supports TABLE_PER_CLASS and MAPPED_SUPERCLASS for JPA inheritance. Unfortunately JOINED and especially SINGLE_TABLE

  • 0

AppEngine only supports “TABLE_PER_CLASS” and “MAPPED_SUPERCLASS” for JPA inheritance.
Unfortunately “JOINED” and especially “SINGLE_TABLE” are not supported.

I’m wondering what the best alternative is to implement a SINGLE_TABLE alternative?

My only requirements are:
1) Have separate classes like AbstractEmployee, InternalEmployee, ExternalExmployee.
2) Being able to run a query over all employees, thus resulting in both InternalEmployee and ExternalEmployee instances.

The only thing I’m thinking off is using a ‘big’ Employee object containing all fields?
Any other ideas?

PS: vote for proper “SINGLE_TABLE” support via http://code.google.com/p/googleappengine/issues/detail?id=8366

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:23:08+00:00Added an answer on June 13, 2026 at 4:23 pm

    You could in theory use @Embeded and @Embeddable to group related fields into an object. So you would have a class that looks something like.

    @Entity
    public class Employee {
         // all the common employee fields go here 
         //
    
         // the discriminator column on Employee class lets you be specific in your queries          
         private Integer type; 
    
         @Emebded 
         private Internal internal; // has the fields that are internal
    
         @Embeded
         private External external; // has the fields that are external 
    
         equals & hashcode that compare based on the discriminator type and other fields 
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://code.google.com/appengine/docs/python/tools/uploadingdata.html is not clearly understand. Where i should call the bulkloader.py or appcfg.py? Should
According to this: http://code.google.com/appengine/docs/whatisgoogleappengine.html it seems that GAE only uses Datastore to store data,
I have a problem with my app on Google AppEngine, especially with the datastore.
I am using appengine with python 2.7 and webapp2 framework. I am not using
I need only two app-engine related jars ( appengine-api-1.0-sdk-1.6.0.jar and appengine-api-labs-1.6.0.jar to be precise)
App Engine only allows you to use these formats for XMPP addresses: app-id@appspot.com anything@app-id.appspotchat.com
In Google App Engine documentation for Channel API, it is stated that Only one
Official appengine documentation says that if we set threadsafe property to true in app.yaml
Although appengine already is schema-less, there still need to define the entities that needed
I am using AppEngine with Restlet to serve my data to a GWT app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.