Hi all
I above problem was resolved, that eas coming because of the .configure() after the new configuration();
I have a new problem,
I have the following code
try{
System.out.println("************Hello World 1************");
config = new Configuration();
System.out.println("************Hello World 2************");
config.addClass(UserDataBO.class);
System.out.println("************Hello World 3************");
sessionFactory = config.buildSessionFactory();
System.out.println("************Hello World 4******************");
session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
System.out.println("************Creating Cat***************");
session.save(userData);
session.flush();
tx.commit();
System.out.println("**************Committing**************");
session.close();
}
When i run the code it gives the following on the
jboss console:-
14:00:57,890 INFO [STDOUT] ************Hello World 1************
14:00:57,890 INFO [STDOUT] ************Hello World 2************
14:00:57,890 INFO [Configuration] Mapping resource: com/businessobjects/UserDataBO.hbm
.xml
14:00:57,906 INFO [HbmBinder] Mapping class: com.businessobjects.UserDataBO -> user
14:00:57,906 INFO [STDOUT] ************Hello World 3************
14:00:57,906 INFO [Configuration] processing extends queue
14:00:57,921 INFO [Configuration] processing collection mappings
14:00:57,921 INFO [Configuration] processing association property references
14:00:57,921 INFO [Configuration] processing foreign key constraints
14:00:57,921 INFO [STDOUT] Hibernate Exception :The dialect was not set. Set the property hibernate.dialect.
I have already set my hibernate in my hibernate.properties file.
What should i do , please advice
Thanks in advance
With Regards
S.R.K.Vivek Raju.