aspose file tools*
The moose likes Object Relational Mapping and the fly likes sequence as String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "sequence as String" Watch "sequence as String" New topic
Author

sequence as String

Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

I am getting a ClassCastException when using a SequenceGenerator on a field of type String (with hibernate) (String cannot be cast to a number). Is this how it is supposed to be? With OpenJPA it worked fine.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Which JPA implementation are you using? Database?

-Cameron McKenzie
Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

Hibernate with Oracle 9i
 
wood burning stoves
 
subject: sequence as String
 
Similar Threads
Tech Word Game
How to convert byte array into string array?
date format with MS Access database
ResultSet to Array
WA #1.....word association