SEAM: Entity Inheritance

I will make a comparison on how the SEAM (Hibernate) framework and Rails framework handles model inheritance.

This first article is about SEAM.

There are 3 ways of implementing this in Hibernate, as explained here and

Strategy 1: One table per subclass

Strategy 2: One Table per class herarchy

Strategy 3: One table per concrete class

The interesting question is how to map (implement) those relationships in Jboss SEAM. I will later edit this post after i have tried the sollutions above 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: