Home Tutorialhelp Comment Please anyone explain the below lines, line wise

 
 

Comment

venkata naidu
Please anyone explain the below lines, line wise,
February 9, 2008 at 3:54 PM

SessionFactory fact = new Configuration()
.configure().buildSessionFactory();
sess = fact.openSession();
Transaction tr = sess.beginTransaction();
Insurance ins = (Insurance)sess.get
(Insurance.class, new Long(1));

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Hibernate Questions

Please explain Hibernate Sessionfactory.
Please explain Hibernate Sessionfactory.  Hi there, Please explain Hibernate session factory in detail. I have just started learning hibernate so i..., the tutorials here will help you learn Hibernate and will explain about hibernate 

Hibernate Questions

How to update table in Hibernate
How to update table in Hibernate  Hi, I have a table in database that has two fields in it. Student Name and ID, can anyone explain me how to update these tables in Hibernate. Thanks.   Update table query in Hibernate 

Hibernate Questions

Explain Hibernate Relationships with example.
Explain Hibernate Relationships with example.  Hello, Please explain various hibernate relationships. And if you can provide some examples that would be a great help.. Thank you....   Hi, Hibernate relational 

Hibernate Questions

hibernate
hibernate  can any one one explain what is hibernate ?   Please visit the following link: Hibernate Tutorials 

Hibernate Questions

Hibernate giving exception - struts - MySQL - Hibernate
will hang when it executes below line _factory... Please can anyone help on this. i am working on this from past 3 days...Hibernate giving exception - struts - MySQL  Hi all, My name 

Hibernate Questions

Blob update in hibernate
Blob update in hibernate  Hi , I wanted to upload a blob into mysql database using hibernate. Could you please help me . Thanks in advance, Satchidanand Mohanty 

Hibernate Questions

Intro please - Hibernate
Intro please  Hi, Anyone please tell me why we go for hibernate? is there any advanced feature? Thanks, Prabhakaran.  Hi friend, Here is the detail information about hibernate. Read for more 

Hibernate Questions

hibernate firstExample not inserting data - Hibernate
.  Hi friend, Please send me code and explain in detail. Visit for more information. http://www.roseindia.net/hibernate/ Thanks. ...hibernate firstExample not inserting data  hello all , i followed 

Hibernate Questions

Hibernate - Hibernate
Hibernate  what is difference between dynamic-update and dynamic... property and a tagged value to allow dynamic-insert and dynamic-update. ------------------------------------------- Please visit for more information 

Hibernate Questions

Hibernate - Hibernate
Hibernate SessionFactory  Can anyone please give me an example of Hibernate SessionFactory?  Hi friend,package roseindia;import...;1.0"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate 

Hibernate Questions

Hibernate - Hibernate
/hibernate/ Please specify your requirements in detail. It would be good...Hibernate  Hai this is jagadhish while running a Hibernate... schema update Aug 14, 2008 12:06:11 PM org.hibernate.tool.hbm2ddl.SchemaUpdate 

Programming Tutorials

HIBERNATE IN CONSOLE & SERVLET
is given below, from screen shot.(The first few lines about logging can... HIBERNATE IN CONSOLE & SERVLET ( part-3...; In this continuation of the earlier tutorial on Hibernate( July-2005) , the author gives a demo 

Hibernate Questions

Hibernate compilation - Hibernate
Hibernate compilation  please explain how to compile and run Hibernate at command prompt ( in dos) with sample example 

Hibernate Questions

Update not working in hibernate.
Update not working in hibernate.  Update not working in hibernate 

Hibernate-Tutorials

Hibernate update Query
Hibernate update Query In this tutorial you will learn about an update query in Hibernate This tutorial is based on how to write HQl update query in hibernate. In hibernate update query updates the data of the database table when 

Hibernate Tutorial Example

Hibernate Tools Update Site
Hibernate Tools Update Site       Hibernate Tools Update Site In this section we will show you how to download and install Hibernate tools from Hibernate Tools Update 

Hibernate Questions

jeetendradash - Hibernate
jeetendradash   how this code works?i just want to know when we execute session.getNamedQuery("Insname"), what happens? how the above code invoked? can anyone explain please?thnx 

Hibernate Questions

Please explain what is hibernatetemplate with an example code.
Please explain what is hibernatetemplate with an example code.  hi, Please explain Hibernate template example code to me..   Hello Friend... from the database simplifies interactions with Hibernate Session. Sessions 

Hibernate Questions

hibernate
hibernate  please give me the link where i can freely download hibernate software(with dependencies)   Learn hibernate, if you want to learn hibernate, please visit the following link: Hibernate Tutorials 

Hibernate Questions

Hibernate
Hibernate  Please tell me the difference between hibernate and jdbc 

Hibernate Questions

hibernate
hibernate  how to execute a sequence(in database) from Hibernate program or java program   Please visit the following link: Hibernate Tutorials 

Hibernate Questions

Hibernate
Hibernate  hello, how to run hibernate program in netbeans?please send me step by step instructions to run hibernate in netbeans 

Hibernate Interview Questions

Explain the persistence class in hibernate?
Explain the persistence class in hibernate?  What is persistence class in hibernate?   Persistence class are simple POJO classes in an application. It works as implementation of the business application for example 

Hibernate Questions

Hibernate error - Hibernate
, Please explain in detail your problem so that we can discuss and solve it. If you want more examples of Hibernate please visit the following link. http...Hibernate error  I had run hibernate first example but it an error 

Hibernate Questions

Please..please provide me a good Hibernate in Spring example
Please..please provide me a good Hibernate in Spring example  Hi, Can anyone please provide me a Hibernate in Spring example with simple explanation as I am new to Hibernate. Thanks in advance..   Dear Friend, If you 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code   Hi How to intract struts , spring and Hibernet. Explain architecture flow.   Hi Friend, Please visit the following link: http://www.roseindia.net/struts/hibernate-spring/index.shtml Here 

Hibernate Questions

Explain Transparent Persistence - Hibernate
Explain Transparent Persistence   Hi Friends, Can u plz explain Transparent Persistence briefly  Hi Follow this link to find solution of your problem... http://www.roseindia.net/jdotutorials/jdo 

Hibernate-Tutorials

HQL Update Statement to update database table
the example below... Example of UPDATE Clause in Hibernate: package..._ where insurance0_.ID=? Hibernate: update insurance set insurance_name...HQL Update Statement to update database table HQL's update query statement 

Hibernate Questions

Hibernate
Hibernate  hi sir i need hibernate complete tutorial for download   Hi Friend, Please visit the following link: Hibernate Tutorials Thanks 

Hibernate Questions

hibernate
hibernate  how to impot mysql database client jar file into eclipse for hibernate configuration   Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate/runninge-xample.shtml Thanks 

Hibernate Questions

hibernate
hibernate  Is there any other way to call procedure in hibernate other than named query????? if we are using session object to get the connection then why hibernate we can directly call by using a simple java class??????? please 

Hibernate Questions

hibernate
hibernate   i am using hibernate3.2.5 and oracle9i. First i set classpath to ojdbc14.jar and all the hibernate jar files to path env variable.After... version " please give me the suggestion to sort out the problem 

Hibernate Questions

Hibernate
hibernate library files are not included in the project build path. Please download the example from Hibernate Getting Started Tutorial. Please follow the steps... of Hibernate. I followed all th steps as given in the tutorial, but a build error 

Hibernate Questions

Hibernate - Hibernate
Hibernate application development help  Hi, Can anyone help me in developing my first Java and Hibernate application 

Hibernate Questions

C3PO in hibernate - Hibernate
of connection pooling we can use c3po in hibernate. can u explain wat's c3po... that, following link will help you. Please visit for more information: http://www.roseindia.net/hibernate/ Thanks 

Hibernate Questions

Hibernate code problem - Hibernate
Hibernate code problem  Hi This is Raju.I tried the first example of Hibernate material what u have given. I have written contact.java... to execute FirstExample.java it is throwing java.lang.NullPointerException. at the line 

Hibernate Questions

Hibernate - Hibernate
Hibernate  how to update record by calling stored procedure from java prog using hibernate query   Hibernate update query http://www.roseindia.net/hibernate/hibernate-update.shtml This will show you how to update 

Hibernate Questions

Need for hibernate - Hibernate
Need for hibernate  Can anyone say why should we go for hibernate?   Hi friend, Advantages of hibernate : It is based on object... solution. In Jdbc we use .properties file and in hibernate we use .xml file 

Hibernate Tutorial Example

Hibernate Update Query
Hibernate Update Query      ... Please initialize the log4j system properly. Hibernate: select...=? Hibernate: update insurance set insurance_name=?, invested_amount 

Hibernate Questions

Struts-Hibernate-Integration - Hibernate
Struts-Hibernate-Integration  Hi, I was executing struts hibernate intgeration code the following error has occured. Anyone can give me...) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   Hi Friend, Please visit 

Hibernate Questions

Dynamic-update not working in Hibernate.
Dynamic-update not working in Hibernate.  Why is dynamic update not working in hibernate?   Dynamic-update is not working. It means when you are running your update, new data is added in your table in place 

Hibernate Questions

hibernate
urgent please send me. thanks in advance thanks&regards teja   Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate...hibernate  Hi Good Morning Will u please send me the some 

Hibernate Questions

hibernate - Hibernate
hibernate  is there any tutorial using hibernate and netbeans to do a web application add,update,delete,select   Hi friend, For hibernate tutorial visit to : http://www.roseindia.net/hibernate/index.shtml 

Hibernate Questions

hibernate sql error - Hibernate
, Please visit the following links: http://www.roseindia.net/hibernate...hibernate sql error  Hibernate: insert into EMPLOYE1 (firstName..." org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 

Hibernate Questions

hibernate update problem
hibernate update problem  HI, I integrated the struts and hibernate and wrote the following query in the databean to update the user table login... = session.createQuery("update LoginForm set logintime = '"+loginTime+"' where 

Hibernate Questions

hibernate
hibernate  1.difference between lazy=true and lazy=false? 2.difference between merge() and update()? 3.what is detached object 

Hibernate Questions

hibernate - Hibernate
hibernate  wts the use of inverse in hibernate? can any one explain the association mapping(1-1,1-many,many-1,many-many 

Hibernate Questions

hibernate...............
hibernate...............  goodevining. I am using hibernate on eclipse, while connection to database Orcale10g geting error .........driver ARNING...) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423) ... 7 more please suggest me 

Hibernate Interview Questions

HQL in hibernate ? Explain the use of HQL.
HQL in hibernate ? Explain the use of HQL.  What is the HQL in hibernate ? Explain the use of HQL.   HQL stands for Hibernate Query Language, provided by Hibernate. It is minimal object oriented, similar to SQL 

Hibernate Questions

Problem in running first hibernate program.... - Hibernate
programs.It worked fine.To run a hibernate sample program,I followed the tutorial below.../hibernate/hibernatetools/hibernate-tools-update-site.shtml Again I downloaded...Problem in running first hibernate program....  Hi...I am using 

Hibernate-Tutorials

Hibernate Tutorial for Beginners Roseindia
different versions are explained below in simple language. What is Hibernate..., insert, update and delete the records in the table. 3 main components of Hibernate...Learn Hibernate programming at Rose India.net website RoseIndia.Net website 

Hibernate Interview Questions

hibernate
hibernate  please let know the most likely asked questions in the interview assoonaspossible. my interview is tomarrow please send me as soon as possible.Hibernate questions Regards, Shweta 

Hibernate Questions

Hibernate - Hibernate
Hibernate  how to call the stored procedure in mysql database server using hibernate..??  Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate Thanks 

Hibernate Questions

Hibernate Association
Hibernate Association  1) <bag name="product" inverse="true... name="dealer" class=" net.roseindia.Dealer" column="did" insert="false" update="false"/> In the above 2 lines, what do we mean by the attributes inverse 

Hibernate Questions

What is Hibernate sessionfactory
What is Hibernate sessionfactory  Hi, I am new in Hibernate. I trying to write a simple program in Hibernate. Can anyone explain me about the hibernate sessionfactory? Thanks 

Blog

Hibernate tools update site
Hibernate tools update site Are you looking for hibernate tools update site? Hibernate Tools is also available for the popular Eclipse plugin. You can... productivity. Hibernate tools update site is http://download.jboss.org/jbosstools 

Hibernate Questions

java - Hibernate
Java assert keyword example  What is the assert keyword? Can anyone explain it with the help of an example 

Hibernate Questions

JAVA - Hibernate
JAVA  hello friends please answer me. 1. what is hibernate...? 2. why hibernate..? 3. Hibernate Vs JDBC...? plz plz plz answer me, i have... of by the developer manually with lines of code. Hibernate provides transparent persistence 

Hibernate Questions

Problem in updating query in Hibernate - Hibernate
are not getting update.. Please help... Thanks in advance!!  Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate... to update the existing columns of one table. The query updates the records 

Hibernate Questions

Difference between and merge and update in hibernate
Difference between and merge and update in hibernate  What is difference between and merge and update in hibernate?   Use update() if you are sure that the session does not contain an already persistent instance 

Hibernate Questions

Hibernate - Hibernate
Hibernate  Hello Deepak as you answer posted this is solution of if any file not found but my question is .. Error is ::: Error in reading contact.hbm.xml contact.hbm.xml is my hibernate mapping file. So please read 

Hibernate Questions

Hibernate - Hibernate
Hibernate  when I run Hibernate Code Generation wizard in eclipse I'm... getting this error. please let me know, how to resolve...;Hi Friend, Please visit the following link: http://www.roseindia.net 

Hibernate Questions

Hibernate - Hibernate
Hibernate   Dear sir Thanks for your previous answers its really... ,hibernate, jboss, oracle) one is 1) Express and 2) MDM(All master data... 192.168.1.2 using hibernate(Schema name Express) In MDM i am connecting 

Hibernate Questions

hibernate - Hibernate
Hibernate; import org.hibernate.Session; import org.hibernate.*; import...-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter...   Hi Radhika, i think, you hibernate configuration 

Hibernate Questions

What is Hibernate Criteria Transformer?
What is Hibernate Criteria Transformer?  Hi, Can anyone explain me about the Hibernate Criteria Transformer? I need good example of Hibernate Criteria Transformer . Thanks   Hi, check the example Hibernate Criteria 

Hibernate Questions

hibernate over Jdbc
hibernate over Jdbc  Why use hibernate over Jdbc?   Hibernate provides lots of advantages over JDBC. Some of them are as below: 1... transparent persistence 4) Hibernate reduces lines of code 5) Hibernate support two 

Hibernate Questions

Hibernate - Hibernate
Hibernate  I am trying to connect hibernate with ejb2.0 stateless session bean, my application sucessfully deploy in weblogic server but when i... net.sf.hibernate.cfg.Configuration . Please give a solution for that.  

Hibernate Questions

Hibernate Configuration
Hibernate Configuration  Explain how to configure Hibernate 

Hibernate Questions

hibernate - Hibernate
hibernate  I have written the following program package Hibernate; import org.hibernate.Session; import org.hibernate.*; import... org.hibernate.dialect.MySQLDialect update 

Hibernate-Tutorials

Hibernate save()
This tutorial explain how save() works in hibernate 

Hibernate Questions

Please convert this SQL query to hibernate - Hibernate
Please convert this SQL query to hibernate  I have a SQl query, which needs to be converted to HQL query, but i am not successfull, please help me..._in is null OR b.opted_in = 1) GROUP BY b.msisdn, a.msisdn Please, thanks 

Hibernate Questions

Update value of database using hibernate.
Update value of database using hibernate.  How to update value of database using hibernate?   Hibernate provides facility to update..."); } } Output: Hibernate: select employee0_.emp_id as emp1_0_0_, employee0 

Eclipse Plugins

Hibernate Synchronizer
are upgrading from a release prior to 2.2.0... Please follow the instructions below. Your... Hibernate Synchronizer       Hibernate Synchronizer is a free Eclipse plugin code 

Hibernate-Tutorials

Hibernate update Method
Hibernate update Method In this tutorial you will learn about the update method in Hibernate Hibernate's update method saves the modified value... an update method of Hibernate to update the record of table. Complete Code 

Hibernate Questions

What are dialects in hibernate?
What are dialects in hibernate?  I am beginner in Hibernate. I just heard something about the dialects. Can anyone explain me What are dialects in hibernate? Thanks   HI, Hibernate is database independent ORM tool 

Hibernate Questions

hibernate - Hibernate
hibernate  hi i am new to hibernate. i wan to run a select query with oracle database. could you please help me out. my files are: package... hibernate for use SessionFactory sessionFactory = new Configuration 

Hibernate Questions

How to learn Hibernate?
How to learn Hibernate?  I am beginner in Hibernate. Now I want to learn Hibernate. Can anyone explain me how to learn Hibernate from scratch... learn the complete Hibernate. Check the tutorial Hibernate examples and articles 

Hibernate Questions

Hibernate - Hibernate
Hibernate  Hai this is jagadhish, while executing a program in Hibernate in Tomcat i got an error like this HTTP Status 500... in the classpath of your application. Please add jta.jar into your application 

Hibernate Questions

Java - Hibernate
, this type of output. ---------------------------- Inserting Record Done Hibernate... not execute JDBC batch update... = null; try{ // This step will read hibernate.cfg.xml and prepare hibernate 

General

Count lines of a particular file
In this program you will learn how to read a file and count number of lines in it. This is the simple program that opens a file and read one line at a time and count no of lines in a file. Program first asks the user to enter 

Hibernate Questions

object chaining? - Hibernate
object chaining?  daoobject.getsession().begainTransaction; can any one explain the code, i am not understanding this line when iam working with swt and hibernate 

Java-Tutorials

Hibernate Tutorial
Hibernate Tutorial This section contains the various aspects of Hibernate. Here we will read What is Hibernate, Features of Hibernate, Compatibility with the various databases, Hibernate dialect of various databases, Architecture 

Hibernate Questions

Hibernate Detached Criteria Example
Hibernate Detached Criteria Example  can anyone share me the source code of using detached Criteria in Hibernate? Thanks   Hi, If you... then the tutorial link given below is the best place to start with the Hibernate 

Hibernate Questions

Explain factories design?
Explain factories design?  Hi, I can't understand the concept of factories design, if you can explain it to me in simple words, i would be grateful..., follow the links below: Factory Pattern Data Access object (DAO) Design 

Hibernate Interview Questions

Hibernate - Hibernate Interview Questions
hibernate interview questions and answers  Hi, Can anyone give me the best reference of hibernate interview questions and answers?Thanks in advance 

Struts Questions

Struts 2 + hibernate
Struts 2 + hibernate  How to integrate Struts 2 and Hibernate? Its urgent please help!!   See the example give below.. for integrating struts 2 and hibernate. Struts2.2.1 and hibernate integration application Integrate 

Hibernate Questions

Hibernate delete a row error - Hibernate
Hibernate delete a row error  Hello, I been try with the hibernate delete example (http://www.roseindia.net/hibernate/hibernate-delete.shtml) but keep receiving exceptions, not sure if I did some thing wrong, please help 

Hibernate Questions

hi - Hibernate
hi  hi all, I am new to hibernate. could anyone pls let me know... and search support for * Userin entities. Transaction control of the save(), update.... http://www.roseindia.net/hibernate 

Hibernate Questions

what is object chaining? - Hibernate
what is object chaining?   daoobject.getsession().begainTransaction; can any one explain the code, i am understanding this line when iam working with swt and hibernate 

Spring Framework Questions

spring with hibernate integration
spring with hibernate integration   i want code for update and find operation how can i update and search operations in one method by using multiaction controller?   Please visit the following link: http 

Hibernate Questions

update count from session - Hibernate
update count from session  I need to get the count of how many rows got updated by session.saveOrUpdate(). How would I get this? Thanks, mpr 

Hibernate Questions

Struts Hibernate Spring - Hibernate
Struts Hibernate Spring  HI Deepak, This is reddy.i want expamle for struts hibernate spring example.  Hi Friend, Please visit the following link: http://www.roseindia.net/struts/hibernate-spring/index.shtml 

Hibernate-Tutorials

Hibernate Tools
we will explain the features of Hibernate Tools for Eclipse IDE... and install Hibernate tools from Hibernate Tools Update Site.  ... Hibernate Tools Hibernate Tools: Hibernate Tool is yet another cool 

Hibernate Questions

struts with hibernate - Hibernate
struts with hibernate  Can u send me Realtime example of struts with hibernate(Saving,Delete,update,select from muliple tables 

Hibernate-Tutorials

Hibernate Update
In this section we will discuss various method of update 

Hibernate Questions

Hibernate 4.0-nested transaction not suported
please explain with a simple example. I asked this question before some day, but i...Hibernate 4.0-nested transaction not suported  how i do nested transaction using Hibernate 4, i know hibernate 4 does not support nested transaction 

Hibernate Questions

Hibernate 4.0-nested transaction not suported
please explain with a simple example...Hibernate 4.0-nested transaction not suported  how i do nested transaction using Hibernate 4, i know hibernate 4 does not support nested transaction 

Hibernate Questions

Hibernate application - Hibernate
Hibernate application  Hi, Could you please tell me how to implement hibernate application in eclipse3.3.0 Thanks, Kalaga.  Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate 

Hibernate Questions

hibernate object states and life cycle
hibernate object states and life cycle  I am bit confused in between the hibernate states and it's life cycle. Can you please explain this also? also explain the persistent, detached and transient object states.Thanks 

Hibernate Questions

Hibernate tutorial - Hibernate
Hibernate tutorial  can u provide me some material in hibernate.  Hello Rohin,You can learn Hibernate within 10 days from our website. In our hibernate tutorial you will find many examples with running code. You can 

Advertisements Advertisements
 

 

 

DMCA.com