-->
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: TimesTen mapping data types
PostPosted: Mon Jul 28, 2008 8:44 am 
Newbie

Joined: Mon Jul 28, 2008 8:37 am
Posts: 1
Hi!

I'm having a small problem using Hibernate with TimesTen. For a Long type identifier inside a class I want to generate the corresponding PK column inside the table.

I have declared the identifier property as of type "long" in the hbm.xml file.
Hibernate transforms this into a BIGINT which is not supported by TimesTen: An exception occurs suggesting that the data type should be changed to TT_BIGINT in order to be accepted by TimesTen.

Any ideas how to create this specific column type using Hibernate?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 28, 2008 12:09 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Could you not go into TimesTen manually and create the table with the TT_BIGINT datatype, rather than doing it programatically? Administrative I know, but it would work. :)

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.