[jboss-user] [JBoss Seam] - Re: Problem with HibernateEntity when id is not of type Stri
baz
do-not-reply at jboss.com
Thu Oct 12 06:14:53 EDT 2006
Hello,
totally my fault. now solved.
With HibernateManagedEntity you could outject only Objects of type String,
So HibernateManagedEntity has to convert a String to the real object type (e.g.long) .For this purpose ther was the attribute idclass.
Now,
with HibernateEntity, you can outject the real object type. No need for conversion (good job,gavin).
The solution was easy. At every location where bazExperimentId is outjected ireplace
| @Out(required=false)
| private String bazExperimentID;
|
with the original type of the identifier
| @Out(required=false)
| private Long bazExperimentID;
|
and all is well.
Ciao,
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977839#3977839
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977839
More information about the jboss-user
mailing list