• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Annotations

 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anybody explain me what is hibernate annotations and what is the use of that annotations and what is the need of using that??
Thanks
mano
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have just started to use hibernate annotations.i am using
@SQLInsert(sql = "insert into products(userId,productName) values(?,?) ")
at the top of my entity class Product.Can anybody explain me when will this quey be executed.or else how will i execute this query to fetch data from products table.

thanks
mano.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!