1

I have two model classes ClassA and ClassB. ClassA has ClassB but NOT inherited. I have a single table with both classA and ClassB attributes. How will I map these models to a single table.

ClassA: x int, y int

ClassB: a string, b string

CREATE TABLE TableA ( x Integer, y Integer, a String(255), b String(255) ) Please guide me in mapping these model classes to a single table. Thank you

1 Answer 1

1

You have to use Concrete Table Inheritance for this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.