openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: ID class: no public string or class + string constructor?
Date Tue, 27 Mar 2007 00:48:42 GMT
Are you using @Id or @IdClass or @EmbeddedId annotations?

I'm looking at 2.1.4, 9.1.14, and 9.1.15 and trying to figure out  
which case you're having trouble with.

Craig

On Mar 26, 2007, at 5:37 PM, Craig L Russell wrote:

> Hi Jeff,
>
> It would be useful if you could include a code fragment and the @Id  
> annotation for your class to diagnose this.
>
> Thanks,
>
> Craig
>
> On Mar 26, 2007, at 4:35 PM, jeff wrote:
>
>> getting this error:
>>
>> The id type "class com.sun.portal.pom.FooId" specfied by  
>> persistent type "class com.sun.portal.pom.Foo" does not have a  
>> public string or class + string constructor.
>>
>> this error doesn't seem to correspond to any of the requirements  
>> of an ID class as defined in the spec.
>>
>> my first guess is that it wants me to add an constructor that  
>> takes the result of toString() and constructs the ID class based  
>> on that, but adding a constructor that takes a string arg didn't  
>> change the error. i don't understand what it would want for the  
>> "class + string" constructor, so i was not sure what to try there.
>>
>> can someone help interpret this error?
>> thanks!
>>
>>
>>
>>
>> ---------------------------------
>> Never miss an email again!
>> Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
>
> Craig Russell
> DB PMC, OpenJPA PPMC
> clr@apache.org http://db.apache.org/jdo
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message