This is a usage question and has no relevance to the furthering development of Hibernate.  Please use the user forums.

 

Thank you.

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Safdar Kureishy
Sent: Monday, February 07, 2005 9:02 PM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Problem configuring Hibernate with mappings via an InputStream

 

Hi,

 

I have an InputStream object that is constructed from a hibernate XML config file (in some other place) and I am trying to get the mappings contained within it read into the Hibernate Configuration object.

 

Ideally I could use the method configure(File file), but since I don’t have a handle to the actual File object (I only have a handle to the corresponding InputStream), I am unable to call configure(). So, I am currently using the addInputStream(InputStream stream) method that claims to read the mappings from an XMl file input stream. However, these mappings don’t seem to be taking effect via this method. Is there any other way I could get this working? Am I missing something else?

 

Thanks in advance.


Regards,

Safdar

Reply via email to