Anbarasu Aladiyan
Anbarasu Aladiyan
Anbarasu Aladiyan
Anbarasu Aladiyan
I think you are not using the cfg.xml fileSessionFactory sessionFack=new AnnotationConfiguration().configure().buildSessionFactory();
Anbarasu Aladiyan
Anbarasu Aladiyan
Anbarasu Aladiyan
Anbarasu Aladiyan wrote:I think you are not getting my point. post "HibernateUtil" and "AnnotationConfiguration" class codes.
There are two ways to build the session factory. Using cfg.xml file and another one is without using the cfg xml file (in which we can give the configuration details using java code. Which is likely used when we do annotated version).Christian Dillinger wrote:
Anbarasu Aladiyan wrote:I think you are not getting my point. post "HibernateUtil" and "AnnotationConfiguration" class codes.
Why are you doing this? If you want to help him, don't ask him for code of AnnotationConfiguration. That's a Hibernate class not his own.
Anbarasu Aladiyan
Anbarasu Aladiyan wrote:There are two ways to build the session factory. Using cfg.xml file and another one is without using the cfg xml file (in which we can give the configuration details using java code. Which is likely used when we do annotated version).
If we use annotated version then obliviously it has nothing to do with cfg file (since we can configuration details using java code when we build session factory)
Also I don't think that is possible to help without seeing the code
please buy my thing and then I'll have more money:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|