-
1. Re: EnversHibernateToolTask not generating audit tables
adamw Sep 28, 2012 9:54 AM (in response to gilberthuph) -
2. Re: EnversHibernateToolTask not generating audit tables
gilberthuph Sep 28, 2012 1:42 PM (in response to adamw)Yes I did, that is what I based my configuration on. I'm actually calling ant via Gradle:
{code}
task generateDdl << {
ant {
taskdef(name: 'hibernatetool',
classname: 'org.hibernate.tool.ant.EnversHibernateToolTask',
classpath: configurations.generateDdl.asPath)
mkdir(dir: "$buildDir/generated")
hibernatetool(destdir: "$buildDir/generated") {
jpaconfiguration(persistenceunit: "MyPU")
hbm2ddl(
export: false,
outputfilename: 'schema.sql',
drop: false,
create: true,
delimiter: ";",
format: true)
classpath {
pathelement(path: sourceSets.main.output.asPath)
pathelement(path: sourceSets.test.output.asPath)
}
}
}
}
{code}
-
3. Re: EnversHibernateToolTask not generating audit tables
adamw Oct 11, 2012 2:11 PM (in response to gilberthuph)Hmm no idea ... can you debug to check if AuditConfiguration.getFor(...) is called?
Adam