daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jan 12th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Entity
  2. @Table(name = "SOMETABLE")
  3. @AccessType("field")
  4. public class SomeEntity implements java.io.Serializable {
  5.    
  6. @Entity
  7. @Table(name = "SOMETABLE")
  8. @AccessType("field")
  9. @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
  10. @DiscriminatorColumn(name = "DISCRIMINATOR", discriminatorType = DiscriminatorType.STRING, length = 20)
  11. @DiscriminatorValue(value = "Some")
  12. public class SomeEntity implements java.io.Serializable {
  13.    
  14. @Entity
  15. @DiscriminatorValue(value = "SomeOther")
  16. public class SomeOtherEntity extends SomeEntity {
  17.    
  18. @DiscriminatorColumn(name = "DISCRIMINATOR", discriminatorType = DiscriminatorType.STRING, columnDefinition = "varchar default 'SomeOther'" , length = 20)
RAW Paste Data
Top