-->
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.  [ 3 posts ] 
Author Message
 Post subject: UserType Question
PostPosted: Thu Jul 29, 2004 2:19 pm 
Beginner
Beginner

Joined: Sat Mar 13, 2004 4:00 pm
Posts: 32
I'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:

<property name="reportDate"
type="com.rcm.coreservices.hibernate.UtilDateType"
update="false"
insert="false"
access="field">
<column name="REPORT_DATE" sql-type="date" not-null="true"/>
</property>

When I start my server, I get the following error when the HibernateMBean starts up

13:04:52,566 INFO [HibernateServiceMBean] Could not build SessionFactory using the MBean classpath - will try again using client classpath: property mapping has wrong number of columns: com.rcm.positionservice.domain.FinancingBEAR.reportDate type: com.rcm.coreservices.hibernate.UtilDateType

What columns am I missing?

Thanks in advance,

Rich


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 29, 2004 3:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Depends how your UserType looks like.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 29, 2004 3:38 pm 
Beginner
Beginner

Joined: Sat Mar 13, 2004 4:00 pm
Posts: 32
That was my problem.

Thanks

Rich


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.