This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.persistance Annoate long for Timestamp Column

 
Ally Cavs
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

I will be receiving a Long from client side which is a representation of the time. I would like to be able to annotate the Long so the value can be persisted to a Timestamp DB field.
I could adjust setter and getter code to set a second java Timestamp field with a similar name and annotate the class accordingly but ill have to do this for every long (time) attribute

Any help would be much appreciated? There must be a a kind of Long to Timestamp mapper facility?

Thanks
Alan
 
Ally Cavs
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any ideas guys?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic