• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

overriding parent entity annotations question

 
Alexander Curvers
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
say i hava a customer entity with an address annotated as @notnull.. now i want to create a special kind of customer .. but it requires no address.. so i subclass customer.. make a class called homelessCustomer extends customer but how do i override the @notnull anotation for address ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic