Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
hibernate-3.2
Mapping documents:
I am using anotations!
Code between sessionFactory.openSession() and session.close():
final Configuration cfg = new Configuration();
cfg.configure();
SessionFactory sf = cfg.buildSessionFactory();
Session s1 = sf.openSession();
if( s1.isConnected())
System.out.println("Connected!");
else
System.out.println("Disconnected!");
sf.close();
Full stack trace of any exception that occurs:
Connected!
Name and version of the database you are using:
Sql Server 2005
The generated SQL (show_sql=true):
None
Debug level Hibernate log excerpt:
don't know how to debug level.
Problems with Session and transaction handling?
The problem is this!
Hibernate is eating everything i give it, and runing as if the world was blue and shiny... when it should be reporting what really is going on!
I've tried both placing incorrect password (in my xorg config), and totally desabling the network cable (the RDBMS is on another host)...
And it still says that it the sessions is connected.
I am using SQL Server JDBC driver.
"com.microsoft.sqlserver.jdbc.SQLServerDriver"
which i downloaded from microsoft's website.
Furthermore, i've tried executing exporting one entities schema (there is only one so far):
the code follows next ->
AnnotationConfiguration cfg;
cfg = new AnnotationConfiguration();
cfg.addAnnotatedClass(businesslogic.Profile.class);
cfg.configure();
final SchemaExport se = new SchemaExport(cfg);
se.create(true, true);
Again no errors to report.
No relation is created,
and more importantly... not even the DML is printed.
Either the cfg doesn't realize it has an annotated class inside, or simly the tool is malfunctioning?
Something is off!
Read this:
http://hibernate.org/42.html
[/i]