Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Master data - Annotate with @entity or not?

 
san kumar parihar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should we mark classes that represent master data with @entity annotation. Though assigment does not indicate to build any admin application to maintain the master data, the fact is master data belongs same domain model as transactional data, and is being referred in the SuD.

As an example, characteristics classes (describing Wood, Steel & Concrete) in JustBuildIt assignment from Cade/sheil's. What is the justification for these not having @entity annotation?
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will the data need to be read ? If yes then @Entity will be needed to enable JPA to do this for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic