-
1. Re: org.hibernate.annotations.Type and jboss tools
jjfraney Mar 20, 2012 11:20 AM (in response to jjfraney)I would add that the above code runs fine in jboss container.
-
2. Re: org.hibernate.annotations.Type and jboss tools
maxandersen Mar 20, 2012 12:44 PM (in response to jjfraney)john - thanks for finding what looks like a bug.
Could you report it in https://jira.jboss.org/jira/browse/JBIDE with the details and perfectly a minimal code example we could verify against ?
-
3. Re: org.hibernate.annotations.Type and jboss tools
jjfraney Mar 20, 2012 3:00 PM (in response to maxandersen)While narrowing down my example code, I discovered that the error occurs if and only if I exclude artifact hibernate, group org.hibernate, from hibernate annotations depedendency.
I'm not sure this isn't self inflicted. Seems reasonable for jboss tools to depend on my project's build path.
Still want a issue report in JBIDE?
Thanks,
John
-
4. Re: org.hibernate.annotations.Type and jboss tools
jjfraney Mar 20, 2012 4:29 PM (in response to jjfraney)Also, a related question. After the UserType errors were elimintated, this one became apparent.
Description Resource Path Location Type Discriminator column "DTYPE" cannot be resolved on table "equipment" Equipment.java /xxxxxx/src/main/java/com/xxxxxxx line 85 JPA Problem Its true that dtype is not on the table. I thought hibernate does not use a discriminator in this case. The application works fine in jboss as 6 with the same database definition.
@Entity
@Table(name="equipment")
@Inheritance(strategy=InheritanceType.JOINED)
-
5. Re: org.hibernate.annotations.Type and jboss tools
maxandersen Mar 21, 2012 2:59 AM (in response to jjfraney)Yeah, if you remove hibernate types from the classpath the type hiearchy is incomplete and thus we can't check the correctness.
But that said we should be able to see the type and that the subclass is *named* properly so I think we can improve on that situation. Please open a jira for it.
-
6. Re: org.hibernate.annotations.Type and jboss tools
maxandersen Mar 21, 2012 3:00 AM (in response to jjfraney)hmm - please add that to https://jira.jboss.org/jira/browse/JBIDE
it might be a default Eclipse JPA validation rule that we haven't customized or in worst case can't customize. In any case please open a bug on it and we'll take a look.
Thanks!
-
7. Re: org.hibernate.annotations.Type and jboss tools
dgeraskov Mar 21, 2012 3:26 AM (in response to maxandersen)Type validation of Type/TypeDef is our problem(Please ignore it, we'll fix it soon). I have checked and org.jasypt.hibernate.type.EncryptedStringType implements UserType and ParametrizedType through AbstractEncryptedAsStringType.
I create a jira for it https://issues.jboss.org/browse/JBIDE-11364
-
8. Re: org.hibernate.annotations.Type and jboss tools
dgeraskov Mar 21, 2012 6:53 AM (in response to dgeraskov)I have checked the validation issue for @Type and @TypeDef. It was fixed in 3.3.0.M4.
See https://issues.jboss.org/browse/JBIDE-8435. So I guess you uses earlier release.
-
9. Re: org.hibernate.annotations.Type and jboss tools
maxandersen Mar 21, 2012 7:23 AM (in response to dgeraskov)Dmitry,
He stated he use:
jboss by redhat, Hibernate tools: 3.4.0v20120307-2104-H60-Beta1
jboss by redhat, jboss as tools: 2.3.0.v20120308-1629-H87-Beta1
Indigo Service Release 2 Build id: 20120216-1857
so that is the latest afaics.
-
10. Re: org.hibernate.annotations.Type and jboss tools
dgeraskov Mar 21, 2012 8:05 AM (in response to maxandersen)You are right and this is even more strange, because I can't reproduce this on Beta1
-
11. Re: org.hibernate.annotations.Type and jboss tools
dgeraskov Mar 21, 2012 8:38 AM (in response to dgeraskov)Ahh, when John excluded hibernate dependency.
Reproduced and fixed the issue. https://issues.jboss.org/browse/JBIDE-8435.
Thanks for note.
-
12. Re: org.hibernate.annotations.Type and jboss tools
jjfraney Mar 21, 2012 8:57 AM (in response to dgeraskov)Added test case toe JBIDE: https://issues.jboss.org/browse/JBIDE-11368