-->
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.  [ 1 post ] 
Author Message
 Post subject: Importance of implementing VersionType,LiteralType.
PostPosted: Wed Jun 15, 2016 11:37 am 
Newbie

Joined: Wed Jun 15, 2016 11:32 am
Posts: 1
I implemented custom UtcTimestampType in hibernate to always save time in UTC.like discussed http://stackoverflow.com/questions/5080 ... 3#16955113 . In this post it was suggested that all the over ridden methods are delegated to TimeStampType. I am not sure of role these methods play, is it ok to delegate to TimeStampType? What is the importance of over-riding below methods ?: i am using hibernate 5.0.1.

1 . String[] getRegistrationKeys() in org.hibernate.type.BaseType
2. seed, next, getComparator in org.hibernate.type.VersionType<T>
3. objectToSQLString in org.hibernate.type.LiteralType


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

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.