mysql - Why isn't hbm2ddl.import_files working in hibernate4-maven-plugin (Hibernate 4.3.6)? -
i have following persistence.xml:
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"> <persistence-unit name="blah" transaction-type="resource_local"> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.mysql5dialect"/> <property name="hibernate.hbm2ddl.auto" value="create"/> <property name="hibernate.hbm2ddl.import_files" value="myfile.sql"/> </properties> </persistence-unit> </persistence>
but hibernate.hbm2ddl.import_files
property isn't working. doesn't seem matter put myfile.sql or prepend slash or wildcards, classpath etc. (clutching @ straws) - never finds , log output doesn't indicate looking it. default import.sql used instead (and works).
note: have seen similar questions (e.g. this , this) none of resolutions worked me.
i think problem due using hibernate4-maven-plugin - doesn't seem support hibernate properties.
Comments
Post a Comment