• 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 ?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!