Last active
August 29, 2015 13:57
-
-
Save sebersole/9695745 to your computer and use it in GitHub Desktop.
Entity/MappedSuperclass - alternative
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class EntityTypeMetadata extends IdentifiableTypeMetadata { | |
| private MappedSuperclassTypeMetadata mappedSuperclass; | |
| private EntityTypeMetadata superType; | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @MapedSuperclass | |
| class Nothing { | |
| } | |
| @Entity | |
| class Something extends Nothing { | |
| @Id Integer id; | |
| ... | |
| } | |
| @MappedSuperclass | |
| class BasePersistentThing { | |
| @Id Integer id; | |
| ... | |
| } | |
| @Entity | |
| class AnEntity extends BasePersistentThing { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MappedSuperclassTypeMetadata extends IdentifiableTypeMetadata { | |
| private MappedSuperclassTypeMetadata superType; | |
| .... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment