Комментарии:
excellent tutorial! very easy to understand and follow. you are a blessing :)
ОтветитьVery excellent tutorial. great job Patrick!!!!!!!!!!!!!
ОтветитьSeriously amazing! :)
ОтветитьThank you .. very useful information..
ОтветитьNice series of lesson. Clean, structured and easy to understand. Thank you sir
Ответитьvery good session on hibernate.thanks :)
Ответитьthat line is used to create table in derby database , in this test class he is only inserting column data in the already created table with column name empId,empName. that's why he has commented out that particular line
ОтветитьHello, well, I think that line was used for creating the Employee schema, and we just need to do it once. Then, it is not nescessary any more because the schema is already in the real DB now. So, comment that line. :-)
Ответитьconfig.buidSessionFactory() seems depreciated......What needs to be used instead now ???
ОтветитьAwesome :-) Thanks from India. May your all wishes comes true.
ОтветитьThis guy does great job...
ОтветитьHi Patrick, I got an exception when I insert the object Alex. Exception in thread "main" java.lang.AbstractMethodError: org.postgresql.jdbc2.Jdbc2DatabaseMetaData.supportsGetGeneratedKeys()Z at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:123) org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) ...................... at com.hibernate.chapter1.TestEmployee.main(TestEmployee.java:23) Can you tell me what's wrong? Thank you!
Ответить@MissTechniverse Hey ! I've noticed that you have the same problem that I have while trying to create a SessionFactory, did figured out how to solve it ? I would really appreciate it :)
ОтветитьExcellent tutorials so far. The hibernate.cfg.xml file i copied had misspelled "class" on the "current_session_context_class" portion which was driving a no currentsessioncontext configured error for anyone else having that problem.
Ответитьhi I have tried this example. It is creating the schema and table, but inserting the record is failing with following exceptions Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:620) at com.atsi.hibernate.ch01.TestEmployee.main(TestEmployee.java:27)
ОтветитьWonderful tutorial!
ОтветитьI had a "exception in thread “main” org.hibernate.hibernateexception: no currentsessioncontext configured!", it was a typo in the hibernate.cfg.xml incase anybody has the same problem
Ответитьconfig.buildSessionFactory does not work anymore. It should be replaced by SessionFactory factory = newAnnotationConfiguration().configure().buildSessionFactory();
Ответитьhi patrick, I just want to ask, is there any difference if i am using spring mvc3 as framework? thanks. :)
ОтветитьI like all your Hibernate Videos. I was also able to update and delete records from the table. Could'nt figure out how to select data from a table using this Employee class.
ОтветитьThis tutorial really helped me to start from basics of Hibernate... Thanks. Can you provide me Spring video tutorial of same tutor...i would be highly thankful to you,,,,,,
Ответитьthis is an amazing tutorial series. thank you!
Ответить