These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mapping to find an entry based on max date
PostPosted: Wed Aug 30, 2006 10:19 am 
Newbie

Joined: Wed Oct 12, 2005 5:59 pm
Posts: 3
I apologize for posting this as I assume it must have been discussed before, however, I haven't been able to find anything in my searches.

I'm trying to understand my options for mapping to a table that maintains it's history within itself. So the table has a CreateDate column, every update isn't a sql update but an insert. The current application then finds and returns the active record by finding the maximum CreateDate column with the specific id.

I realize I can do this through hql or criteria but is there anyway to do this through mapping?


Top
 Profile  
 
 Post subject: timestamp?
PostPosted: Wed Aug 30, 2006 10:38 am 
Newbie

Joined: Wed Oct 12, 2005 5:59 pm
Posts: 3
I just found the timestamp tag,

http://www.hibernate.org/hib_docs/nhibe ... -timestamp

I still have to read it but maybe this is what I'm after.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.