Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity annotation - week

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I need to define a temporal column and the only thing I will need from its records will be the week in the year.

Does anyone have a suggestion on which class and annotation to use in this case?

Thanks in advance.
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a java.util.Calendar field and map it with @Temporal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic