-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hibernate Annotations package scan not works package-info #86
Comments
<properties>
<asm.version>5.0.4</asm.version>
<javassist.version>3.20.0-GA</javassist.version>
<spring-boot.version>1.2.5.RELEASE</spring-boot.version>
<maven.version>3.3.3</maven.version>
<liquibase-hibernate4.version>3.5</liquibase-hibernate4.version>
<liquibase.version>3.4.0</liquibase.version>
<hibernate.version>4.3.10.Final</hibernate.version>
<usertype.version>4.0.0.GA</usertype.version>
</properties> |
If I put @typedefs on to any entity class, it works ok, but can it works I put it on to package-info??? |
Any progress on that? I have similar issue with
on the package level |
+1 |
+1 - Does Hibernate scan for annotations on interfaces ? As a quick workaround can we use @TypeDefs({
@TypeDef(name = "type1", typeClass = foo.bar.Type1),
@TypeDef(name = "type2", typeClass = foo.bar.Type2),
@TypeDef(name = "type3", typeClass = foo.bar.Type3)
})
public interface Marker {
// nothing
}
@Entity
public class MyEntity implements Marker {
private foo.bar.Type1 type1Value;
public MyEntity() {
super();
}
@Column
public foo.bar.Type1 getSpecialType1() {
return type1Value;
}
public void setSpecialType1(foo.bar.Type1 type1Value) {
this.type1Value = type1Value;
}
} |
I have a similar problem but with the @FilterDef annotation at package level. For exmaple with this wont work (package-info.java):
When I run from maven the liquibase:diff command it fails with this error:
However it works fine in my Spring application. |
…729) Co-authored-by: jusda-cd-d-qinhao <[email protected]> Co-authored-by: Daniel Mallorga <[email protected]>
I work with spring-boot, and have no persistence.xml file, I configured a TypeDef in file package-info.java,
I set hibernate.hmb2ddl.auto to create, run the test case, the type in the database will surely be datetime, but it doesn't work with liquibase-hibernate spring connection.
here is my configuraion in the pom.xml.
here is the codes in my package-info.java
┆Issue is synchronized with this Jira Bug by Unito
The text was updated successfully, but these errors were encountered: