akram23
دوشنبه 06 آبان 1392, 13:53 عصر
سلام به تمام مهندسین
من یه برنامه ساده برای تست hibernate نوشتم پایگاهمم sqlserver 2005 ببینید همه چیز به نظر می رسه داره خوب پیش می ده حتی این مرحله
Configuration cfg = new Configuration();
cfg.configure("hibernate.cfg.xml");
هم درست پیش میره و configuration پر میشه و جدولم را هم نشان می دهد اما زمانی که به اجرای خط
SessionFactory factory = cfg.buildSessionFactory();
میرسد گیر می کند و در کنسول هم نوشته شده
Connected to the target VM, address: '127.0.0.1:55107', transport: 'socket'
Oct 28, 2013 2:20:39 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.2
Oct 28, 2013 2:20:39 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Oct 28, 2013 2:20:39 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
Oct 28, 2013 2:20:39 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Oct 28, 2013 2:20:40 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: hibernate.cfg.xml
Oct 28, 2013 2:20:40 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: hibernate.cfg.xml
Oct 28, 2013 2:20:40 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : Product.hbm.xml
Oct 28, 2013 2:20:41 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: str.Product -> PRODUCTS
Oct 28, 2013 2:20:41 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Oct 28, 2013 2:22:01 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
Oct 28, 2013 2:22:01 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: Hibernate connection pool size: 20
Oct 28, 2013 2:22:01 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: autocommit mode: false
Oct 28, 2013 2:22:02 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: using driver: com.microsoft.sqlserver.jdbc.SQLServerDriver at URL: jdbc:sqlserver://localhost\sql2005:1433;databaseName=test
Oct 28, 2013 2:22:02 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: connection properties: {user=sa, password=****}
خواهشا کمکم کنید یک هفته هست که کل سایت های خارجی و ایرانی رو زیر و رو کردم همه راه کارها را هم رفتم اما نشده:عصبانی++:
در صورتی که کسی نیاز به پروژه هم داشت براش میل می کنم چون به دلیل حجم آن نمی شد اینجا قرار بدهم.
با سپاس فراوان
من یه برنامه ساده برای تست hibernate نوشتم پایگاهمم sqlserver 2005 ببینید همه چیز به نظر می رسه داره خوب پیش می ده حتی این مرحله
Configuration cfg = new Configuration();
cfg.configure("hibernate.cfg.xml");
هم درست پیش میره و configuration پر میشه و جدولم را هم نشان می دهد اما زمانی که به اجرای خط
SessionFactory factory = cfg.buildSessionFactory();
میرسد گیر می کند و در کنسول هم نوشته شده
Connected to the target VM, address: '127.0.0.1:55107', transport: 'socket'
Oct 28, 2013 2:20:39 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.2
Oct 28, 2013 2:20:39 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Oct 28, 2013 2:20:39 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
Oct 28, 2013 2:20:39 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Oct 28, 2013 2:20:40 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: hibernate.cfg.xml
Oct 28, 2013 2:20:40 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: hibernate.cfg.xml
Oct 28, 2013 2:20:40 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : Product.hbm.xml
Oct 28, 2013 2:20:41 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: str.Product -> PRODUCTS
Oct 28, 2013 2:20:41 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Oct 28, 2013 2:22:01 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
Oct 28, 2013 2:22:01 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: Hibernate connection pool size: 20
Oct 28, 2013 2:22:01 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: autocommit mode: false
Oct 28, 2013 2:22:02 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: using driver: com.microsoft.sqlserver.jdbc.SQLServerDriver at URL: jdbc:sqlserver://localhost\sql2005:1433;databaseName=test
Oct 28, 2013 2:22:02 PM org.hibernate.connection.DriverManagerConnectionPr ovider configure
INFO: connection properties: {user=sa, password=****}
خواهشا کمکم کنید یک هفته هست که کل سایت های خارجی و ایرانی رو زیر و رو کردم همه راه کارها را هم رفتم اما نشده:عصبانی++:
در صورتی که کسی نیاز به پروژه هم داشت براش میل می کنم چون به دلیل حجم آن نمی شد اینجا قرار بدهم.
با سپاس فراوان