I have a problem in setting the entity-name of a annotation class in hbm.xml file
<class name="test.document.document_version" table="document_version" entity-name="document_version_entity">
<id name="id" column="id">
<generator class="uuid.hex"/>
</id>
<property name="size" column="size" type="int" />
<property name="version" column="version" type="java.lang.String" />
<property name="filename" column="filename" type="java.lang.String" />
<property name="attachment" column="attachment" type="java.lang.String" />
</class>
I got the following error
java.lang.NullPointerException
org.hibernate.search.store.DirectoryProviderFactory.getDirectoryProviderName(DirectoryProviderFactory.java:354)
org.hibernate.search.store.DirectoryProviderFactory.createDirectoryProviders(DirectoryProviderFactory.java:65)
org.hibernate.search.impl.SearchFactoryImpl.initDocumentBuilders(SearchFactoryImpl.java:260)
org.hibernate.search.impl.SearchFactoryImpl.<init>(SearchFactoryImpl.java:94)
org.hibernate.search.impl.SearchFactoryImpl.getSearchFactory(SearchFactoryImpl.java:172)
org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:44)
org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:356)
org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1304)
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
However,one the entity -name property in the hbm.xml file,everything works fine. What
is the problem?
Thank in advance.
Josie
|