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:37:22 GMT
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



Mime
View raw message