HIBERNATE JBoss.org
 |  Register  | 
     
News 
About 
   Feature List 
   Road Map 
Documentation 
   Related Projects 
   External Documentation 
Download 
Forum & Mailinglists 
Support & Training 
JIRA Issue Tracking
Wiki Community Area


Hibernate Public Training Courses


Get Hibernate in Action eBook!


JavaWorld 2003 Finalist


Jolt Award 2004 Winner
      
Documentation > Community Area > UserType for persisting Typesafe Enumerations with a single class > Comments > Re: I got error compiling


Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
Subject: Re: I got error compiling 06 Aug 2004, 11:55
From: jones Replies: 1, Views: 15
 
For those who could be interested, I've fixed the problem with some type
casting:

At line 87 of PersistentIntegerEnum.java:
return ((Integer) getEnumCode()).compareTo((Integer)((PersistentEnum)
other).getEnumCode());

And at lines 135-136 of PersistentEnumjava:
Method mth = other.getClass().getMethod("getEnumCode",
(java.lang.Class[]) null);
Serializable enumCode = (Serializable) mth.invoke(other,
(java.lang.Object[]) null);
 

Thread:
 I got error compiling 
 jones   06 Aug 2004, 11:21 
 Re: I got error compiling 
 jones   06 Aug 2004, 11:55 
 Re: I got error compiling 
 bryanhunt   06 Aug 2004, 13:37 
      

coWiki