1. How to define UserType' s name globally in Hibernate? stackoverflow.comIt's possible to use @TypeDefs annotation to define short type name for a UserType. But how to define it for entire application? |
2. Hibernate UserType to truncate trim data stackoverflow.comWondering if it is a good or bad ideal to make use of Hibernate UserType to trim data from an incoming data feed to prevent exceptions thrown if the data is ... |
3. java.lang.verifyError on hibernate specific usertype stackoverflow.comWe have been using the GenericEnumUserType for our extensible enumerations and our classes fail to load in JBoss 6, on a Hibernate 3.6+ container. The following error is thrown
|
4. Hibernate UserType not found by JBoss on startup stackoverflow.comStumped and frustrated. Is this a JBoss scope issue?? Just switched to JBoss-6.0.0.Final from Tomcat stand-alone. Have been using Hibernate 3.6 all along and my package libraries are unchanged. ... |
5. Best way to implement a Hibernate UserType after deprecations? stackoverflow.comI recently got the latest version of Hibernate and noticed that my UserTypes now have warnings about AbstractStandardBasicType's nullSafeGet(ResultSet,String) and nullSafeSet(PreparedStatement,T,int) methods being deprecated in favor of their corresponding ... |
6. UserType in Hibernate coderanch.comDoes anybody have experience with UserType in Hibernate? From what I have read, this looks like a non-trivial endeavor that requires you to write 11 methods for each UserType class that you want to use. Is anybody mapping properties to custom classes, or is everyone just using the native types defined by Hibernate? |
7. UserType and nullSafeGet not called forum.hibernate.orgHi All, In a annotated class I have added my own usertype with the @Type annotation on the getter of the column: @Type(type="my.package.MyUserType") With debugging I was able to confirm this class is instantiated and the sqlTypes() method is called. however, the nullSafeGet() method is not called when I retrieve a list by HQL. Can anyone point me in the right ... |
8. How to run example using UserType in Chapter 6? forum.hibernate.org |
9. UserType not-null problem forum.hibernate.orghibernate.check_nullability=true doesn't help. I am using hibrnate 3.3.2 and nullability check works for ordinary properties but not for the multi-column UserType. As I now see this is because not-null="true" doesn't mean that hibernate should check nullability itself but it should create a NOT NULL constraint which is useless in case of multiple columns. |
10. Need help with a UserType that's not working forum.hibernate.orgHello I've written a custom UserType to deal with a legacy database storing texts as ASCII strings with HTML escapes (instead of, say, UTF8 or some other binary charset.) I'm trying to do the encoding and decoding on the UserType level. This is the code (standard part collapsed): Code: public class HtmlStringType implements UserType { public HtmlStringType() {} ... |
11. Using TypeFactory inside a UserType forum.hibernate.orgHi, before Hibernate 3.6.0, I was defining the following UserTypes (simplified to illustrate): Code: public class JodaDateTimeType implements UserType { ... } public class JodaIntervalType implements CompositeUserType { ... public String[] getPropertyNames() { return new String[] {"start", "end"}; } ... |
12. BigDecimalType problems with zeros, might need UserType help forum.hibernate.orgNewbie Joined: Thu Jan 14, 2010 4:07 am Posts: 8 Hello, I've been searching for a couple of days for a solution to my problem with no success yet, so I thought I'd ask here. I'm using Hibernate 3.3.2-GA, jdk 1.5, the database is DB2 on AS400 I have 2 tables with a field of DECIMAL(30,9) that has been mapped as ... |
13. UserType Problem forum.hibernate.orgNewbie Joined: Sat Sep 03, 2011 4:46 am Posts: 6 Hello community, we want to use UserTypes to achieve TypeSafe DAOs in our application. This means we want to use Java Pojos as DB Id. Therefore we wrote a Custom IdentifierGenerator providing the Pojos. Now we need a Usertype to make the conversion from the db datatype (here: long) and the ... |
14. UserType assistance forum.hibernate.orgHey everyone. I'm having trouble migrating my Server from JDBC persistence to Hibernate. I'm using Google's PHONENUMBERLIB, as a member in my Pojo that I want to persist. I'm trying to create a UserType class for PhoneNumber but the problem I have is that the PhoneNumber constructor takes two arguments. one is the actual phone-number in String, and the other is ... |
15. UserType forum.hibernate.orgHello, I am kind of new to Hibernate. I have a class ShipData with such fields:private String name_; private ContactInfo contact_; private String registerNumber_; private String imoNumber_; private String flag_; private DateRange classPeriod_; private String id_; private Owner owner_; The classes Owner, ContactInfo and DateRange have just java basic type fields. They do not have matching tables in database, even ShipData ... |
16. Interesting UserType problem forum.hibernate.orgHi folks, I have an interesting situation I hope someone can help with. I've read all about UserTypes and CompositeUserTypes, and I've looked at the DoubleStringType and MultiplicityType examples numerous times, but a solution still eludes me... I'm trying to create a wrapper class that knows how to persist instances of special java.security.Permission subclasses to a table. Lets say the root ... |
17. LDAP again. CustomType / UserType ??? forum.hibernate.orgIf I'm interested in using LDAP to manage users and groups, can someone provide a hint into Gavin's comments about using a UserType or CustomType? From the javadoc, we have: Code: Object nullSafeGet(ResultSet rs, String[] names, Object owner) Retrieve an instance of the mapped class from a JDBC ... |
18. Problems with UserType interface forum.hibernate.orgHello, I'm trying to mape a |
19. UserType - isMutable() forum.hibernate.org |
20. UserType forum.hibernate.orgI have created a few of these, but I have not seen any documentation on how it is referenced internally. Is it safe to use member variables in these classes? Would/should there be a case that any of the functions ( ie nullSafeSet, nullSafeGet ) are synchronized? Thanks in advance for any information, the help is much appreciated. |
21. Enum / UserType / CGLIB problem forum.hibernate.orgRegular Joined: Wed Nov 26, 2003 6:22 am Posts: 76 Location: Stockholm Hi. I'm using an enumerated type representing a small number of user roles. The enumerated class: Code: import java.io.Serializable; import net.sf.hibernate.PersistentEnum; import ks.rah.commons.Group; public class InternalRole implements Serializable, PersistentEnum { private final int code; ... |
22. UserType.returnedClass(): interface type or implementation? forum.hibernate.org |
23. UserType : is returnedClass() usefull ? forum.hibernate.orgWhen I extend UserType, I must override the returnedClass() method. My application use some domain objects witch are persisted with our home-made persistant framework. So I have to extends UserType for each of these objects (Just to override the returnedClass() method). So I do for my TypeSafeEnum. It seem the returnedClass value can be inffered from the persisted property by reflexion, ... |
24. How to get the UserType from a CustomType forum.hibernate.org |
25. How to get the UserType from a CustomType forum.hibernate.org |
26. UserType question forum.hibernate.orgI'm still a little confused about UserType, and when it is necessary, and how to implement it, and am hoping somebody could just scan the following and see if I'm on the right track. If I have the following class: Code: public class PropertiesWrapper { private String id; private java.util.Properties properties; ... |
27. UserType Question forum.hibernate.orgI've defined my own UserType that always returns a java.util.Date instead of a java.sql.Date. I have specified my property def. as follows: |
28. UserType breaks WhereParser because it expects a LiteralType forum.hibernate.orgHibernate version: 2.1.6 Full stack trace of any exception that occurs: ERROR da.HibernateHQLEntityLoader (Client:localhost) - Error while getting identifiction hits net.sf.hibernate.QueryException: Could not format constant value to SQL literal: com.mds.pepland.persistence.IdentificationHitRating.ELECTED [from com.mds.pepland.persistence.IdentificationHit ih where (ih.manualRating=com.mds.pepland.persistence.IdentificationHitRating.ELECTED or (ih.manualRating=com.mds.pepland.persistence.IdentificationHitRating.UNRATED and ih.machineRating=com.mds.pepland.persistence.IdentificationHitRating.ELECTED)) and ih.identification.spectrum.acquisition.sample.id in (:entityIds0_)] at net.sf.hibernate.hql.WhereParser.doToken(WhereParser.java:399) at net.sf.hibernate.hql.WhereParser.token(WhereParser.java:251) at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87) at net.sf.hibernate.hql.PreprocessingParser.token(PreprocessingParser.java:123) at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:29) at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:149) at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:138) at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:294) at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1562) ... |
29. What is UserType. forum.hibernate.orgHi everyone: I see the UserType in many document.It seems very important conception in Hibernate. The Hibernate document says it is better to use UserType than composite-id. But there is little introduce to the "UserType". Someone can tell me how to use the "UserType" or give me an example? An simple example of "UserType" . THks. |
30. UserType for SQLData Types forum.hibernate.orgHibernate version: 2.1.6 Name and version of the database you are using: Oracle 9i, JDBC Driver: classes12.zip Hello everyone, we have an Oracle 9i (9.2) DB which uses some UDTs, like the following: Code: create or replace type color as object (r number, g number,b number); These are part of existing classes. Until now, these have been accessed using the SQLData ... |
31. GeoSpatial Question (Possibly UserType) forum.hibernate.orgHibernate version: 2.1 Hiya all.. Perhaps this should go to the development list, I'm not sure. Apologies if the posting is in the wrong place. I'm working on a project that needs to store spatial data indexed with spatial indexes. I'm currently working with MySQL, although in the past I've worked on Oracle Spatial databases too. I would like to be ... |
32. Techniques to configure a UserType forum.hibernate.orgDoes Hibernate 2.1.6 allow for the dynamic configuration of a UserType? I can write an Interceptor for configuring Entities by providing the Interceptor.instantiate method, but I need to do the same thing for a UserType and Interceptor.instantiate isn't called for UserTypes. I specifically need to open a session within UserType.nullSafeGet and UserType.nullSafeSet but I don't know how to access the SessionFactory. ... |
33. Can userType be used in Criteris API? forum.hibernate.orgI am using Criteria for retrieving objects from database. I have a case that I have to use custom userType. Can I use it in Criteris API? From the book, I see there is an example that userType can be used in Query API: Query q = session.createQuery("from Comment c where c.rating = :rating"); q.setParameter("rating", Rating.LOW, Hibernate.custom(RatingUserType.class); How can I use ... |
34. Oracle user defined types as and UserType forum.hibernate.orgHibernate version: 2.1.6 Mapping documents: |
35. MutableType vs UserType forum.hibernate.org |
36. UserType with non-public constructor? forum.hibernate.orgHi, I would like to persist a typesafe enumeration in Hibernate without breaking the pattern, so I'd like to keep my constructors private if possible. I was under the belief that Hibernate would support constructing objects with private and protected constructors via the Reflection API (when given sufficient security permissions of course) as it does for properties. However, the constructor for ... |
37. Usertype.equals(obj x, obj y) contract re nulls forum.hibernate.orgIn short, my question is... Should UserType.equals(Object x, Object y) return true if both x and y are null? More thoughts... In Hibernate version 2.1.6 the javadoc for UserType.equals(Object, Object) doesn't address the contract if both arguments are null. Code: /** * Compare two instances of the class mapped by this type for persistence ... |
38. Implementing UserType forum.hibernate.orgHi, Our application deals with specific 'type' classes that need to be used instead of int, double etc. For this, I implemented a UserType class that is specifically for use by Hibernate and extends the type classes required by my application so that the hibernate object returned would already be of the type as required by my app. In code terms... ... |
39. Hibernate 3.0 Beta 1 UserType.replace(...) method forum.hibernate.org |
40. how to use the class implemented the interface of UserType forum.hibernate.org |
41. getting null with my UserType on only one column forum.hibernate.orgAuthor Message chaseja Post subject: getting null with my UserType on only one column Posted: Thu Mar 10, 2005 3:43 pm Newbie Joined: Fri Oct 03, 2003 8:44 am Posts: 11 My problem is this: I've created a custom UserType implementation which maps to CHAR columns and right trims whitespace when data is read from the result set and ... |
42. UserType please help forum.hibernate.orgHibernate version:3.rc1 Hi i'm new to use UserType i have found this code in Hibernate documentation http://www.hibernate.org/Documentation/ ... 2AndOracle Code: package dao.hibernate; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; import org.hibernate.*; import org.hibernate.usertype.*; /** * @author Colin Hawkett */ public abstract class TrimmedString implements UserType,Comparable, java.io.Serializable { public TrimmedString() { ... |
43. deepCopy() while implementing UserType forum.hibernate.orgHi, Hibernate gurantees that the JavaIdentity for the persistable objects in the same session is same. Relying on Java identity, the objects do not implement equals() and hashCode(). However, in case of UserTypes where deepCopy() returns a real deep copy instead of returning the same object back, Hibernate always marks that object as dirty. Our problem was resolved by returning the ... |
44. UserType forum.hibernate.orgHibernate version: 2.1.7c This is my UserType class file. Code: public class MoneyType implements UserType { private static final int[] SQL_TYPES = new int[]{Types.DECIMAL}; public int[] sqlTypes() { return SQL_TYPES; } public Class returnedClass() { ... |
45. UserType and fully qualified classname forum.hibernate.orgDaveSegal wrote: Holger, Did you have to modify your java class to make your custom usertype work? I find references to interface org.hibernate.usertype.UserType in Hibernate in Action, but the online html doc reads as though this can all be mapped in xml without modifying the java source. Do I need to implement the UserType interface to make my custom class work, ... |
46. UserType Enumeration problem when migrating to Hibernate 3.0 forum.hibernate.org |
47. Is a delegating UserType feasible? forum.hibernate.orgI would like to persist a map of values. Each value element in the map may be typed as a string, integer, date, or one of a handful of types that will likely require custom UserTypes. I'd like not to create a new persistent class hierarchy that corresponds to these types just so I can get them into the same collection. ... |
48. UserType column returns NULL value on read. forum.hibernate.orgI've got a strange problem where a UserType (TimeZoneUserType) is returning a null value from the database even though I can see clearly that the value in the database is set to "Eastern". My TimeZone and TimeZoneUserType classes are pretty vanilla and the same pattern is working for other persistent types. To make this even more interesting, we've found that by ... |
49. Internationalization without UserType forum.hibernate.orgHi, I want to sore internationalized data, in a relative standard way, so that I will be able to reuse it. So, I decided to use following "Label" table structure : - label_id : int - lang : varchar - label : varchar Primary key is a composite key (label_id, lang). Firstly, I want to use this structure to store names ... |
50. Need Examples/Help Using a UserType (not defining one) forum.hibernate.orgfor me it sounds like you habe a little misunderstanding in using a UserType ... You shouldn't use it as a returntype of your bean ... a 'normal' HibernateType isn't used that way. In your case the UserType may return a String or another (custom) Java-Type ... Besides that, it would be better showing your real code and mapping ... and ... |
51. Typesafe enum and usertype proper use for a codetable? forum.hibernate.orgAuthor Message nomercier Post subject: Typesafe enum and usertype proper use for a codetable? Posted: Thu Jul 28, 2005 5:06 pm Newbie Joined: Thu Jul 28, 2005 4:03 pm Posts: 1 First of all this is definitely a new user question. What we are trying to do is map a code table (Errors) that has values that will never ... |
52. How to access the actual enum value of an Enum UserType? forum.hibernate.orgI looked at this before and it wasn't obvious how it would help me. I think it makes a little more sense now. If I understand correctly then the point is that the parameter for the ParameterizedType should be the enum that I want to use as the actual type for the property, and then the generated Hibernate object's property will ... |
53. UserType vs PropertyAccessor forum.hibernate.orgHi, our informix database returns fix length strings for char type columns. This mean, he fills up from right with spaces any string, that has less character than declared. I want to tell hibernate to trim rigth any strings. (char types are mapped as strings). I see these ways to do this: 1) create a UserType 2) implement a custom PropertyAccessor ... |
54. Commons Enum-based UserType for typesafe enums? forum.hibernate.org |
55. Implement UserType methods depending on Dialect forum.hibernate.orgHello everybody... I'd like to be able to switch behaviour of a UserType depeding on the dialect of the enclosing SessionFactory. Is this possible at all? How can I do that? To be more specific: I have a UserType that maps Strings to Oracle's FIXED_CHAR. I cannot use mapping files using that UserType on a HSQLDB because the FIXED_CHAR is unknown ... |
56. UserType return null value ! forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:3.0.5 Mapping documents: |
57. PropertyAccessor or UserType ? forum.hibernate.orgi dont know whether to use PropertyAccessor or UserType for the following problem : i have a "code" property in my db. i want to insert formatted text in it. different formats should come from an xml file. for example i need to insert "CurrentDate / Financial Year / auto number" into the code field. it should look something like "2005-12-8/05/1" ... |
58. UserType vs PropertyAccessor vs EntityPersister? forum.hibernate.orgWe're attempting to map a (legacy) database, with an interesting situation. A table (ServiceInstance) is referred to by one of 58 service-specific tables (like SVC_Email, SVC_DSL, etc). We've decided to create a concrete subclass for each of those 58 tables, all inheriting from a common superclass. A value in a column two tables away from ServiceInstance (via regular foreign key relations) ... |
59. usertype vs entitypersister forum.hibernate.orgNewbie Joined: Tue Mar 16, 2004 11:41 am Posts: 6 binding, say, an enum to a usertype is performed in the context of a property. i see this as a flaw. everywhere you have a property of the given type, you must repeat the usertype declaration/binding. there should be one place where i can say, for example: "for this enum type, ... |
60. Problem with UserType, ParameterizedType forum.hibernate.orgAuthor Message mathurin.lm Post subject: Problem with UserType, ParameterizedType Posted: Tue Jan 31, 2006 5:23 pm Newbie Joined: Thu Jan 06, 2005 1:46 pm Posts: 8 Hi, i'm using Hibernate 3.1.2 and i'm having, not a little problem to understand how hibernate decide to do an INSERT + and UPDATE in a specific case. The problem : When performing ... |
61. Finder for UserType is broken? forum.hibernate.orgJDBCExceptionReporter - could not execute query [select transactio0_.id as id0_, transactio0_.description as descript2_0_, transactio0_.amount as amount0_, transactio0_.currency as currency0_ from Trnsctn transactio0_ where (transactio0_.amount, transactio0_.currency)=?] java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1). at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2250) at com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:2949) at org.hibernate.type.StringType.set(StringType.java:26) at org.hibernate.type.CurrencyType.set(CurrencyType.java:78) ... |
62. Global UserType forum.hibernate.org |
63. What is allowed in UserType implementations? forum.hibernate.orgYou're allowed access a session, you're just not allowed use the session that you're currently reading a result set from, to get a new result set. This is not an hibernate restriction, it's a JDBC/DBMS one. You can use a different session to do it. You can also use the current session to do things that don't touch reseult sets (e.g. ... |
64. UserType forum.hibernate.org |
65. interface UserType forum.hibernate.org |
66. subset of usertype values? forum.hibernate.org |
67. Accessing other columns in UserType impl forum.hibernate.orgI need a variation on the classic MonetaryUserType (that uses two columns: one with amount, the other with currency). I have a legacy system with ONE currency column in the table, being the default for all amounts. I can't map the same column multiple times so I need the code to just know what the column is called - it can ... |
68. Using UserType as a Decorator Pattern ? forum.hibernate.orgHibernate version: 3.x Hello Is it a good idea to use an UserType as a decorator around the returnedClass ? For example, I have both Text and Image classes, extending a base Item class. I want to be able to make these two classes "linkable" in my web application, that is, I have an Link class extending Item which takes Text ... |
69. Returning multiple Classes using a single UserType impl forum.hibernate.org |
70. Problem with UserType forum.hibernate.orgI am having a problem with a custom UserType in an existing application. The background is that there is a table called Rates with a column called rate. In java we have a Rates.java containing a RateAmount.java. RateAmount extends BigDecimal. Rates.java is for the whole table and RateAmount is for the single column rate. There is a custom UserType to allow ... |
71. Restrictions.ne and UserType with more than one columns forum.hibernate.orgHi, we have implemented a UserType which maps to two columns: statename and stateclass. When we use Restrictions.ne() in Query for a property with this Usertype, the resulting sql contains: where (this_.STATENAME<>? and this_.STATECLASS<>?) instead of where (this_.STATENAME<>? or this_.STATECLASS<>?) violating DeMorgan's Laws. Is this a known bug or should I submit it to JIRA? The Hibernate-Version is 3.1.rc2. We will ... |
72. Weird problem with flushing and UserType in Hibernate 3.2.1 forum.hibernate.orgHibernate version: 3.2.1 We're running a Spring-based web application that uses Hibernate with Spring transaction management. So far, everything worked fine, but after we updated our Hibernate version from 3.2.0 to 3.2.1, a weird bug was introduced, and certain changes to objects weren't persisted anymore. Inside a transaction, we iterate over a number of Job objects that change certain model objects' ... |
73. Covariant return types and UserType forum.hibernate.orgNewbie Joined: Fri Nov 03, 2006 5:21 am Posts: 14 [b]Hibernate version: 3.2.4 Hi folks, I have the following inheritance situation that I want to solve with Hibernate: Code: ----------------- ... |
74. Covariant return types and UserType forum.hibernate.orgNewbie Joined: Fri Nov 03, 2006 5:21 am Posts: 14 [b]Hibernate version: 3.2.4 Hi folks, I have the following inheritance situation that I want to solve with Hibernate: Code: ----------------- ... |
75. Customer UserType for IP Addresses forum.hibernate.org |
76. UserType problem - Could not determine type forum.hibernate.orgHello, I'm getting this error when deploying my application in production server: Quote: org.hibernate.MappingException: Could not determine type for: EntityStatusType, for columns: [org.hibernate.mapping.Column(STATUS)] javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: EntityStatusType, for columns: [org.hibernate.mapping.Column(STATUS)] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737) at (...) Caused by: org.hibernate.MappingException: Could not determine type for: EntityStatusType, for columns: [org.hibernate.mapping.Column(STATUS)] at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266) at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253) at I've this custom type declared in ... |
77. UserType dirty checking algorithm forum.hibernate.orgHi all, We use a UserType to map an oracle XMLTYPE column based on the implementation given in http://www.hibernate.org/369.html. In the UserType implementation, we have implemented the isMutable method to true and the accompaying methods : deepCopy, equals and hashcode correctly. Our goal is to detect modifications made to our object (that will be serialized in XML) and to update the ... |
78. UserType trouble forum.hibernate.orgTwo attribute long, date have to be clubbed using org.hibernate.UserType import org.hibernate.usertype.*; mapping document; |
79. Question about UserType implementation forum.hibernate.orgHi everybody. I have the following question using User Types. I have defined an hibernate mapping with a property called meta that maps to a specific user type. I have implemented the Meta class that has some attributes I want to be mapped, and the Meta Type. I have created Java source files with hbm tools from the mapping file and ... |
80. multi-column userType - getting column numbers forum.hibernate.org |
81. Using a UserType to compare Dates with Restrictions forum.hibernate.orgBeginner Joined: Thu Feb 28, 2008 11:53 am Posts: 23 This is my UserType code: Code: public class DateUserType implements UserType { private static final int[] SQL_TYPES = new int[] { Types.TIMESTAMP }; public DateUserType(){ super(); } ... |
82. No visibility in UserType forum.hibernate.org |
83. UserType isn't working on Oracle, but on other DBs forum.hibernate.orgNewbie Joined: Tue May 20, 2008 12:21 pm Posts: 1 Hello, I implemented a UserType to right trim strings saved in a char column based on the example on CustomStringTrimTypeH3. The UserType is working well on DB2 and MsSql, but not on Oracle. Saven an entity is possible, but if I search the insertet entity (it's in the db) I can't ... |
84. What is the purpose of UserType.returnedClass() ? forum.hibernate.orgI've implemented a couple of user types. I never really understood what the method returnedClass() is for; why does hibernate need this? (Un)surprisingly, I found that this method is never called while saving/retrieving objects. nullSafeGet() and nullSafeSet() are called, but returnedClass() is never called. Simply returning null from this method doesn't seem to cause any issues. Any idea what this method ... |
85. Issue getting UserType to work forum.hibernate.orgHibernate version: 3.2.5 Full stack trace of any exception that occurs: N/A Name and version of the database you are using: MySQL Ver. 14.12 Distrib 5.0.15 for Win 32 Hi Everyone, I seem to be having an issue using a custom UserType I created to handle java.net.URI objects. Prior to implementing a UserType the value is stored in the database as ... |