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