Please vote for these bugs

Mojo The Maven exec plugin dropped/broke support for configuration an output file. It should be fixed: JBoss Hibernate 4 supports auto type registration. This is a pretty powerful feature and makes using JodaTime in your entities a whole lot easier. Unfortunately, hbm2ddl doesn’t support that yet which means that you can’t remove the @Type […]

Maven hbm2ddl: fixing java.lang.ArrayStoreException: sun.reflect.annotation.EnumConstantNotPresentExceptionProxy

Creating a DDL in the Maven build with the hibernate3-maven-plugin fails if you explicitly configure an array of javax.persistence.CascadeType values in your JPA annotations. The stacktrace is similar to javax.persistence.PersistenceException: [PersistenceUnit: spontacts] Unable to configure EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.configure( at org.codehaus.mojo.hibernate3.configuration.JPAComponentConfiguration.createConfiguration( … Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.EnumConstantNotPresentExceptionProxy at sun.reflect.annotation.AnnotationParser.parseEnumArray( at sun.reflect.annotation.AnnotationParser.parseArray( Once I realized what the actual […]