-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: problem with entity-name in hbm.xml file
PostPosted: Thu Dec 20, 2007 9:05 am 
Newbie

Joined: Thu Dec 20, 2007 8:58 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 21, 2007 6:49 am 
Newbie

Joined: Wed Dec 19, 2007 7:28 am
Posts: 9
Please tell me why you want to put an entity so that I can understand your intension


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 22, 2007 5:24 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes you don't give enough info here

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 22, 2007 7:01 am 
Newbie

Joined: Wed Dec 19, 2007 7:28 am
Posts: 9
I don't get why you are saying like this. I had implemented without entity-name element. So I asked to know about its need so that I can get or give new knowledge. As I am interacting in a forum, I think its not a wrong thing to ask. I didn't understand why you are saying like this.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 22, 2007 9:40 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I'm sorry, I just don't understand what you question is, that's why I asked (and the person before me) for more info. There was no malice here.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 23, 2007 11:51 pm 
Newbie

Joined: Wed Dec 19, 2007 7:28 am
Posts: 9
Thanks for understanding me.

Sarika


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 27, 2007 6:09 am 
Newbie

Joined: Thu Dec 20, 2007 8:58 am
Posts: 2
becuase I have two tables mapping the same class in the same database


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.