Java Hibernate Tutorial Part 7 - Insert record (object)

preview_player
Показать описание
Easy to follow Hibernate Tutorial using Java JPA Annotations.
Step by Step Instructions.
Sample Programs.
Рекомендации по теме
Комментарии
Автор

Nice series of lesson. Clean, structured and easy to understand. Thank you sir

shanika
Автор

Awesome :-) Thanks from India. May your all wishes comes true.

SahilRallySuperStar
Автор

this is an amazing tutorial series. thank you!

ditsaa
Автор

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.

subbab
Автор

Excellent tutorials so far. The hibernate.cfg.xml file i copied had misspelled "class" on the portion which was driving a no currentsessioncontext configured error for anyone else having that problem.

Blueblurrex
Автор

excellent tutorial! very easy to understand and follow. you are a blessing :)

pvtolentino
Автор

very good session on hibernate.thanks :)

sanjay_nk
Автор

hi patrick, I just want to ask, is there any difference if i am using spring mvc3 as framework? thanks. :)

MsCuteUser
Автор

Hi Patrick, I got an exception when I insert the object Alex.
Exception in thread "main"

at


at
Can you tell me what's wrong? Thank you!

Ahxjdnkksv
Автор

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

Gargreshu
Автор

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

sanjay_nk
Автор

I had a "exception in thread “main” no currentsessioncontext configured!", it was a typo in the hibernate.cfg.xml incase anybody has the same problem

pcmulder
Автор

@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 :)

mehdiway
Автор

Thank you .. very useful information..

govardhan
Автор

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" No CurrentSessionContext configured!
at
at





badikalamallesham
Автор

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. :-)

MrLoyalNguyen
Автор

config.buidSessionFactory() seems needs to be used instead now ???

SahilRallySuperStar
Автор

config.buildSessionFactory does not work anymore. It should be replaced by

SessionFactory factory =

bhavaniGuitarist