Hibernate version:3.2CR2, Annotations 3.2CD1
Hi all
i have an error if i use the @TypeDefs Annotation.
Code:
@TypeDefs( {
@TypeDef(name = "UnterrichtsDauerExtended", typeClass = GenericEnumUserType.class, parameters = {
@Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.UnterrichtsDauerExtended"),
@Parameter(name = "identifierMethod", value = "getValue"),
@Parameter(name = "valueOfMethod", value = "getInstanceByValue") }),
@TypeDef(name = "GruppenGroesse", typeClass = GenericEnumUserType.class, parameters = {
@Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.GruppenGroesse"),
@Parameter(name = "identifierMethod", value = "getValue"),
@Parameter(name = "valueOfMethod", value = "getInstanceByValue") }),
@TypeDef(name = "TrainingsTypeExtended", typeClass = GenericEnumUserType.class, parameters = {
@Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.TrainingsTypeExtended"),
@Parameter(name = "identifierMethod", value = "getValue"),
@Parameter(name = "valueOfMethod", value = "getInstanceByValue") }),
@TypeDef(name = "WettkampfKategorie", typeClass = GenericEnumUserType.class, parameters = {
@Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.WettkampfKategorie"),
@Parameter(name = "identifierMethod", value = "getValue"),
@Parameter(name = "valueOfMethod", value = "getInstanceByValue") }),
@TypeDef(name = "KursArt", typeClass = GenericEnumUserType.class, parameters = {
@Parameter(name = "enumClass", value = "najsre7.model.immutable.kurs.KursArt"),
@Parameter(name = "identifierMethod", value = "getValue"),
@Parameter(name = "valueOfMethod", value = "getInstanceByValue") }) })
@Entity
@DiscriminatorValue("1")
@Table(name = "TKURS")
public class KursNutzergruppe1 extends najsre7.model.Kurs implements java.io.Serializable {
The strange thing is, that it works locally, but if i deploy the application on WAS 6.1 the following error occurs:
Code:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSessionFactory' defined in class path resource [applicationContext-sessionFactory_re7.xml]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException
Caused by: java.lang.ArrayStoreException
at com.ibm.oti.reflect.AnnotationHelper.getReturnValueFromEntry(Native Method)
at com.ibm.oti.reflect.AnnotationHelper.access$000(AnnotationHelper.java:14)
at com.ibm.oti.reflect.AnnotationHelper$AnnotationInvocationHandler.invoke(AnnotationHelper.java:104)
at $Proxy261.value(Unknown Source)
at org.hibernate.cfg.AnnotationBinder.bindTypeDefs(AnnotationBinder.java:872)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:405)
Could somebody help me?
Angela