Home Tutorialhelp Comment hi i am new to hibernate i can insert data to db t

 
 

Comment

sachin
hi i am new to hibernate i can insert data to db t,
March 30, 2007 at 11:20 AM

hi i am new to hibernate i can insert data to db through session.save() but i am not able to use the quieries here is the sample code and the exception

package com.allo.cem.test;

import java.util.Iterator;
import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;

import com.allo.cem.mapping.UserDetails;
import com.allo.cem.sessionFactory.HibernateSessionFactory;

public class test2 {
private static Session session;

public static void main(String args[]) {
setUp();
getAllUser();
tearDown();
}

private static void getAllUser() {


Transaction tx = session.beginTransaction();
String SQL = "select * from user_details";
Query query = session.createQuery(SQL);
List list = query.list();

Iterator iterator = list.iterator();
while (iterator.hasNext()) {
UserDetails userDetails = (UserDetails) iterator.next();
System.out.println("THE USER NAME :" + userDetails.getUserName());
}

tx.commit();
}

private static void tearDown() {
HibernateSessionFactory.closeSession();
}

private static void setUp() {
session = HibernateSessionFactory.currentSession();
}
}




************* exception **********************
Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxError: unexpected token: * near line 1, column 8 [select * from user_details]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:63)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:215)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:127)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at com.allo.cem.test.test2.getAllUser(test2.java:28)
at com.allo.cem.test.test2.main(test2.java:18)
Caused by: line 1:8: unexpected token: *
at org.hibernate.hql.antlr.HqlBaseParser.selectClause(HqlBaseParser.java:962)
at org.hibernate.hql.antlr.HqlBaseParser.selectFrom(HqlBaseParser.java:735)
at org.hibernate.hql.antlr.HqlBaseParser.queryRule(HqlBaseParser.java:611)
at org.hibernate.hql.antlr.HqlBaseParser.selectStatement(HqlBaseParser.java:263)
at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:150)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:209)
... 8 more
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Hibernate Questions

hi - Hibernate
hi  hi all, I am new to hibernate. could anyone pls let me know what is generic DAO class generated by MyEclipse while doing mapping. I want to delete a particular record using DAO. Here I provide MyEclipse automatiically 

Hibernate Questions

hi i m new to hibernate..plzzzzzzzzzzzzzz help me.... - Hibernate
hi i m new to hibernate..plzzzzzzzzzzzzzz help me....  hi friends i m new to hibernate..& i m stuck in one positon in my pgm.. its a simple select...://www.roseindia.net/hibernate/selectclause.shtml Thanks.  hi deepak.. when i 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code  can you show the insert example of Hibernate other than session.save(obj);  Hi I am sending a link where u can find lots.../insert-data-database.shtml Thanks 

Struts Questions

Hi i am new to J2ee Technology and struts - Struts
Hi i am new to J2ee Technology and struts  what exatly will happen when we hit the Login button? Once we enter in to the application, what will happen. How the UserID and Password validations will done. Can any one help 

Hibernate Questions

hibernate firstExample not inserting data - Hibernate
hibernate firstExample not inserting data  hello all , i followed... problem is data is not inserting into DB even though the program is executed... in the firstExample as below. I will later post the actual code issue later. here i am 

Hibernate Questions

how to Integrate MULE and HIBERNATE - Hibernate
how to Integrate MULE and HIBERNATE  hi, i am having a simple JSP... as webservice. Hibernate is used to talk with DB. I have used Spring framework to generate beans for all my java classes. but i am not able to integrate MULE with Hibernate 

Java Beginners

Hi ..I am Sakthi.. - Java Beginners
Hi ..I am Sakthi..  can u tell me Some of the packages n Sub...;Hi friend, package javacode; import javax.swing.*; import... JTabbedPaneexam() { ImageIcon icon = new ImageIcon(); JTabbedPane 

Hibernate Questions

I am having problem with configuring Hibernate sessionfactory. Please Help
I am having problem with configuring Hibernate sessionfactory. Please Help  Sir, I am having problem with configuring Hibernate sessionfactory.. I was using the old version of Hibernate before now I am using Hibernate

Hibernate Questions

hibernate insert image
hibernate insert image  Sir, Today I hadposted question regarding upload image, th answer you had given is using SQL, but I am using Hibernate to insert data in the same table where I want to insert image. Plz hlp me. Thanks 

Hibernate Questions

hibernate
hibernate  Hi Good Morning Will u please send me the some of the tutorials of hibernate.Because ,i have to learn the hibernate.i am new to this its...;Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate 

Hibernate Questions

Hibernate - Hibernate
;Insert data into database"); HibernatePojoExample pojo = new...Hibernate pojo example  I need a simple Hibernate Pojo example  hi,pojoexample.javapackage roseindia;import org.hibernate.*;import 

Hibernate Questions

insert image using hibernate
insert image using hibernate  Sir, Today I hadposted question regarding upload image, th answer you had given is using SQL, but I am using Hibernate to insert data in the same table where I want to insert image. Plz hlp me 

Hibernate Questions

hibernate - Hibernate
hibernate  how to write join quaries using hql  Hi satish I am sending links to you where u can find the solution regarding your query: http://www.roseindia.net/hibernate/hibernate-aggregate-functions.shtml 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code   example code of how insert data in the parent table and child tabel coloums at a time in hibernate  Hi friend, I am...: http://www.roseindia.net/hibernate/insert-data-database.shtml Thanks 

Hibernate Questions

I want to learn hibernate step-by-step.
I want to learn hibernate step-by-step.  Hello, I am very new to programming world and I am looking forward to learn Hibernate, but I would like to start from start and learn it step by step. Can you please help me.. I would 

JDBC Questions

how to insert, retrieve data from,to db(code)....
how to insert, retrieve data from,to db(code)....  Hi..... i ve... that data will b stored in db(m using sybase). 2.also hw to retrieve the data from db. cn u plz tel me the code in detail.n i thk it shud b written in jdbc 

JDBC Questions

how to insert, retrieve data from,to db(code)....
how to insert, retrieve data from,to db(code)....  Hi, i have created login page n in that a registration form also in jsp, my doubt is-when new user... will b stored in db(m using sybase). 2.also hw to retrieve the data from db. cn u 

Hibernate Questions

help me in inserting data into db using hibernate
help me in inserting data into db using hibernate  How to insert data into dependent tables through hybernate   Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate/insert-data-database.shtml 

Hibernate-Tutorials

Hibernate insert Query
Hibernate insert Query In this tutorial you will learn about how to use HQL... are that the predefined words are not case sensitive. A simple insert query can... will demonstrate you how to use HQL insert query in your program. To explain this query I 

Hibernate Questions

Hibernate-Criteria - Hibernate
Hibernate-Criteria  Hi friends, I am new to hibernate. Im... be resolved to a type". I import the import "org.hibernate.criterion.*" . Can u help me plzzzzzzzzzzz. Cheers, Srikanth.  Hi friend, Read 

Hibernate Questions

Hibernate - Hibernate
,hibernate, jboss, oracle) one is 1) Express and 2) MDM(All master data will be here) In this Express Application i am connecting to oracle server with IP 192.168.1.2 using hibernate(Schema name Express) In MDM i am connecting 

Hibernate Questions

Hibernate code - Hibernate
,but the entery doesnt come.I am using a remote mysql DB. one more point,if i try...   Hi I could reply better, first of all you tell me...Hibernate code  firstExample code that you have given for hibernate 

Java Beginners

How to insert data from textfields into database using hibernate?
How to insert data from textfields into database using hibernate?  ...); System.out.println("Successfully data insert in database"); tx.commit...(); Produs produs = new Produs(); produs.setIdprodus("IdProdusTextField 

Hibernate Questions

Hibernate
not be resolved. How can i rectify that error?   Hi, The error comes when...Hibernate  I downloaded the zip file given in the tutorial of Hibernate. I followed all th steps as given in the tutorial, but a build error 

Hibernate Questions

Hibernate
Hibernate  Hi i have 2 doubbts regarding Hibernate ,.. 1)Can we rename hibernate.cfg.xml? 2? can we use multiple mapping resource in hibernate.cf.xml file ? pls let me know soon 

Hibernate Questions

hibernate - Hibernate
  Hi Radhika, i think, you hibernate configuration...hibernate  I have written the following program package Hibernate; import org.hibernate.Session; import org.hibernate.*; import 

Java Beginners

hi.......
){ } } can anyone tell wts wrong with this code??   Hi, Check it: import...hi.......  import java.awt.; import java.sql.*; import javax.swing.... b1,b2,b3,b4; JTabbedPane tp; createSAccount(){ JTabbedPane tp=new JTabbedPane 

JDBC Questions

HI!!!!!!!!!!!!!!!!!!!!!
=con.createStatement(); int i=st.executeUpdate("insert into bankdata(name,pass...(); int i=st.executeUpdate("insert into bankdata(name,pass,year,faculty,course...HI!!!!!!!!!!!!!!!!!!!!!  import java.awt.*; import java.sql. 

Development process Questions

hi
storing data in xml file using jsp  hi i am storing data in xml file using jsp.in this when i enter data into xml file i am getting xml declaration for each specified data?can any one help me to prevent this?   < 

Hibernate Questions

hibernate Excetion - Hibernate
://www.roseindia.net/hibernate/insert-data-database.shtml It will be helpful for you... identity value Even i mentioned in generator class as native still am getting the same error that Hibernate: insert into login (uname, password) values 

Hibernate Questions

hibernate - Hibernate
hibernate  hi i am new to hibernate. i wan to run a select query... hibernate for use SessionFactory sessionFactory = new Configuration... is: plz help me as i m unable to do 

SQL Question

can i use trigger to insert data within a time period ?
can i use trigger to insert data within a time period ?  Hello sir, i want to calculate company's closing account each Saturday 12.00. In this case i... this trigger concept the data will be insert to each Employee's ID. Plz sir help me 

Hibernate Questions

Problem in running first hibernate program.... - Hibernate
Problem in running first hibernate program....  Hi...I am using... 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 

JSP Servlet Questions

Insert Image in DB through Servlet - JSP-Servlet
IOException{ RetriveImage ri = new RetriveImage(); } } Dear Sir, You give me: I am...Insert Image in DB through Servlet  Dear Sir, My previous Query... a deploy time error in RED Color. Please review... Answers Hi friend, To insert 

JSP Servlet Questions

Insert Image In DB through Servlet - JSP-Servlet
Insert Image In DB through Servlet  Dear Sir, My previous Query... a deploy time error in RED Color. Please review... Answers Hi friend, To insert... Dear Sir, I already see this reference link which you give to insert 

Hibernate Questions

how can i add hibernate plugin to eclipse?
how can i add hibernate plugin to eclipse?  how can i add hibernate plugin to eclipse 

Hibernate Questions

can i use big query in hibernate?
can i use big query in hibernate?  can i use big query in hibernate 

Java Beginners

How can i add a new count to this source code ? - Java Beginners
How can i add a new count to this source code ?  Hi everyone I...;ZHTYPE (Just Logical) Please tell me how can i see this output? Code... No. of found I get XTSM/XTS/TRX/XHAN and now i want count total of this ZHTYPE 

PHP Questions

How can i search and insert within a query
How can i search and insert within a query  if it is possible... then insert these data (batch, semester, degree, seat numbers and marks of mid, lab, terminal) in another table. i am trying these but not successful, A problem occur 

Hibernate Questions

How can I create sessionfactory in Hibernate?
How can I create sessionfactory in Hibernate?  HELLO, How can I create sessionfactory in Hibernate? If you can explain me with example that would... with the links below: Hibernate 4 Hibernate Session Factory I hope 

Hibernate Questions

Hibernate code problem - Hibernate
Hibernate code problem   Hi This is Raju I tried the first example of hibernate course material.This is to insert a record into CONTACT table.Is Hibernate code automatically creates the CONTACT table and then insert 

JSP Servlet Questions

i can not connect to database in servlet - JSP-Servlet
i can not connect to database in servlet  Hi I am following the tutorial in this site on servlet and JDBC. I did all the proccedure for connecting... does not work. I have checked the database and it is running while i am running 

JSP Servlet Questions

i can not connect to database in servlet - JSP-Servlet
i can not connect to database in servlet  Hi I am following the tutorial in this site on servlet and JDBC. I did all the proccedure for connecting... does not work. I have checked the database and it is running while i am running 

Hibernate Tutorial Example

Writing First Hibernate Code
program to insert record in MySQL database. You can run this program from Eclipse or from command prompt as well. I am assuming that you are familiar with MySQL... to write a program to insert the data into database. We should first understand 

Hibernate Questions

hibernate best practices - Hibernate
hibernate best practices   Hi all, I am working on hibernate. can any one please send me the best practices in hibernate. And please send any scenarios which will be better than other ones with details ASAP, i am 

Hibernate Questions

hibernate on eclipse - Hibernate
hibernate on eclipse  Hi, I know procedure to run Struts on eclipse(i.e create src folder, Run Xdoclet,add external files etc.)But as I am new to Hibernate ,I don't know the procedure.colud you send me procedure to run 

Hibernate Questions

hibernate - Hibernate
hibernate   hi,can any one tell me how to get SQL query in hibernate, when hql fire it will create sql in console when hibernate.cfg.xml property will true, but i want SQL query in one variable how to get it... Thanks satish 

JSP Servlet Questions

database is connected but not insert the data
database is connected but not insert the data  hi, i am getting connected to database.Retrive the data also but cannot insert the data into database. i am using msaccess2007.my inserstudententry.jsp code is follows,pls help me 

Hibernate Questions

Hibernate code problem - Hibernate
session.flush(); i am using hibernate 3.3.1 and I kept hibernate3.jar........How can i solve this problem. Am i need to Kept any other jars in path.  Hi friend, I thinks, add hibernate-annotation.jar if you have any 

Hibernate Questions

What's new in Hibernate 4.3.0 Final?
What's new in Hibernate 4.3.0 Final?  What's new in Hibernate 4.3.0 Final? I just found that there is new version of Hibernate. These latest version is Hibernate 4.3.0 final. I would like to find out the latest features 

Struts Questions

Hi.. - Struts
Hi..   Hi Friends, I am new in hibernate please tell me.....if i am using hibernet with struts any database pkg is required or not.....without... me  Hi Soniya, I am sending you a link. I hope that, this link 

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

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 

Hibernate Questions

Hibernate in java - Hibernate
Hibernate in java  Hi, This is Gopi, I am working... and Hibernate). Is there any body who can help me out in my task. All I want is an example in Hibernate. " How to configure a login page (user name and password 

Hibernate Questions

hibernate - Hibernate
hibernate  Hai,This is jagadhish I have a problem while developing insert application of Hibernate.The application is compiled,while running the application I got an exception that it antlr..... Exception.Tell me the answer 

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 execute the client application i got an error message that class not found exception 

Hibernate Questions

C3PO in hibernate - Hibernate
C3PO in hibernate   Hi Friend, I read ,instead creating of connection pooling we can use c3po in hibernate. can u explain wat's c3po Thanks prakash  Hi friend, I am sending you a link. I hope 

Hibernate Questions

Which extension i use for save hibernate file.
Which extension i use for save hibernate file.   Please give me answer that which extension i use for save the hibernate file and how i run that file... for the hibernate file is className.hbm.xml. This is an xml file where you can map 

Hibernate Questions

hibernate code problem - Hibernate
hibernate code problem  suppose i want to fetch a row from the table through a value which i got from the jsp page. how can i do it and iterate it plz give the complete code  Hi friend, I am sending you a link 

Java Beginners

hi.......
hi.......  i've a project on railway reservation... i need to connect... the frame... aftr clickg run i need to enter data to ma frame and the data which i..."); Statement st=con.createStatement(); int i=st.executeUpdate("insert 

Hibernate Questions

Persist a List Object in Hibernate - Hibernate
Persist a List Object in Hibernate   Hi All, I have a query on hibernate. How to persist a List object in Hibernate ? Can you give me.... -- Deepak Lal  Hi friend, package net.roseindia; import 

Java Beginners

I am new to programming and I am not sure what to do next? Any ideas?
I am new to programming and I am not sure what to do next? Any ideas? ... userInputs; static Scanner scan = new Scanner(System.in); static Random rand = new Random(); // The following routine will determin 

Hibernate Questions

Hibernate nullpointer exception - Hibernate
Hibernate nullpointer exception  Hi, I am using eclipse IDE.I copied hibernate example from roseindia.net. I am using MYSQL as my database. 1.In eclipse I hava created new javaproject. 2.I hava copied Contact.java. and I 

Hibernate Questions

How to run? - Hibernate
How to run?  Hiiiiiiiiiiiii friend.. i am Magesh... friends are told hibernate is a new entry to Java. so plz try to tell how to use Hibernate code in my application?  Hi friend, Hinernate : Hibernate 

Hibernate Questions

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

Development process Questions

hibernate - Development process
hibernate  hi, i am new to hipernate,what applications hipernate...;Hi friend, Hibernate 3.0, the latest Open Source persistence technology... the development time. Hibernate is not the best solutions for data centric applications 

Hibernate Questions

Hibernate Isolation Query. - Hibernate
Hibernate Isolation Query.  Hi, Am Using HibernateORM with JBOSS... in if i retreive the data from a particular table, then it is unable to retrieve the data as it is locked by the previous thread,but i would like to show 

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 that when i try to execute the program i got an error "unknown oracle major 

Development process Questions

hi
hi   i want to develop a online bit by bit examination process as part of my project in this i am stuck at how to store multiple choice questions options and correct option for the question.this is the first project i am doing 

JSP Servlet Questions

Insert Image In DB through Servlet - JSP-Servlet
Insert Image In DB through Servlet  Dear Sir, My previous Query that: I want to add the Image In databse using servlet. I have a program Its fine run on command prompt. When I use Servlet Its not properly run 

Hibernate-Tutorials

What's New In Hibernate 4.0 release
What's New In Hibernate 4.0 release In this tutorial you will learn about the new features introduced in Hibernate core 4.0 Hibernate core 4.0.0... classes and interfaces have been deprecated. Here I am giving some list of them 

Hibernate Questions

Reagrsding Hibernate joins - Hibernate
Reagrsding Hibernate joins  Hi, I am trying to make join in Hibernate.  Hi friend,package roseindia;import org.hibernate.Session;import...{ // This step will read hibernate.cfg.xml and prepare hibernate for use 

Java Beginners

Read data from Excel and insert in to DB and export data from DB to Excel
Read data from Excel and insert in to DB and export data from DB to Excel  Read data from Excel and insert in to DB and export data from DB to Excel Hi, I need to read the data from excel and I need to insert the same in to DB 

Hibernate Questions

Hibernate Criteria Queries - Hibernate
Hibernate Criteria Queries  Can I use the Hibernate Criteria Query...;No, without hibernate.cfg.xml file you can not connect database. Hibernate uses...; SessionFactory sessionFactory = new Configuration().configure 

Java Beginners

I am creating one jsp page in which I read in a text file, then display that data in tabular format. Now I need to calculate a total.
I am creating one jsp page in which I read in a text file, then display that data in tabular format. Now I need to calculate a total.  I am reading...... } The output displays 4 rows and 2 columns. How can I calculate the total 

Struts Questions

Struts2 and Hibernate Fetch Data Base Value
Struts2 and Hibernate Fetch Data Base Value  Hello Sir, I am... me what should i do for fetch the database value and shown on jsp page...= new Dao(); public String > execute() { > > dao.save(apl); return 

Struts Questions

Struts2 and Hibernate Fetch Data Base Value
Struts2 and Hibernate Fetch Data Base Value  Hello Sir, I am... me what should i do for fetch the database value and shown on jsp page...= new Dao(); public String > execute() { > > dao.save(apl); return 

Hibernate-Tutorials

Hibernate Collection Mapping
of collection in Hibernate. To create an example I am using List. A list stores... employee_.employee_id=? Hibernate: insert into address (street, city, state, country, address_id) values (?, ?, ?, ?, ?) Hibernate: insert into employee (firstname 

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

Please tell me where I can find tutorials on spring hibernate?
Please tell me where I can find tutorials on spring hibernate?  Hello, Please tell me where I can find tutorials on spring hibernate? Thanks..   Dear Friend, You can find some good tutorials on Spring Hibernate here 

Hibernate Questions

I would like an example about how to create a sessionfactory in Hibernate 4?
I would like an example about how to create a sessionfactory in Hibernate 4?  Hello, Since Hibernate 4 is the latest version of Hibernate, I am finding it a little difficult to create Session factory in Hibernate 4. If you can 

Java Beginners

How can i add a new count to this source code ? - Java Beginners
How can i add a new count to this source code ?  Hi everyone I...;ZHTYPE (Just Logical) Please tell me how can i see this output? Code... No. of found I get XTSM/XTS/TRX/XHAN and now i want count total of this ZHTYPE 

Hibernate Questions

hibernate...............
hibernate...............  goodevining. I am using hibernate on eclipse, while connection to database Orcale10g geting error .........driver ARNING: SQL Error: 0, SQLState: null 31 May, 2012 8:18:01 PM 

Hibernate Questions

Problem with Hibernate or 11g
Problem with Hibernate or 11g  Hi I am using Hibernate and 11g in my project. The problem I am facing is I am executing a query from java class... day I am missing the data between 12:00 AM to 12:59 AM Can any one please help 

Hibernate Questions

Hibernate
Hibernate  Hello, I wanted to learn hibernate.I am not understanding which version to learn.please let me know about 

Hibernate Questions

Hibernate delete HQL - Hibernate
Hibernate delete HQL  Hi I am trying hibernate tutorial. But delete HQL tutorial not working properly. It gives null pointer exception. Query class has method executeUpate() & not executeUpdate 

Hibernate Questions

java.lang.NoClassDefFoundError - Hibernate
java.lang.NoClassDefFoundError  Hi, I am new to hibernate. while running the hibernate application i m getting the following error. Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/cglib/core/KeyFactory 

Hibernate Questions

Hibernate Search - Hibernate
topics... these dayes i am working in "Hibernate Search" it is new and i can't...Hibernate Search  hello i am java developer and mostely concern... and offcourse to others who are new and want to integrate Hibernate Search 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code   I am facing a problem in hibernate program. Error is ::: Error in reading contact.hbm.xml contact.hbm.xml is my hibernate mapping file.  Hi Friend, check whether you have specified correct path 

JSP Servlet Questions

JSP,DB
))))) can u send me the code for this!!!!!   Hi Friend, Try... table=new Hashtable(); int i=0; while(rs.next... to the diagram given above??now I want to retrive the value of application no and master 

Hibernate Questions

JAVA - Hibernate
. why hibernate..? 3. Hibernate Vs JDBC...? plz plz plz answer me, i have seminar in that topic..  Hi friend, Hibernate It is a free, open...: Primary feature of hibernate is to java classes to database tables. Data query 

Hibernate Questions

hibernate - Hibernate
hibernate  hi friends i had one doubt how to do struts with hibernate in myeclipse ide its urgent 

Hibernate Questions

How to create wildcard query in Hibernate?
How to create wildcard query in Hibernate?  Hi, I am new in Hibernate and I have to create a query using wildcard. How to create wildcard query in Hibernate? Thanks   Hi, For creating wildcard query you can use 

Hibernate Questions

fIRST APPLICATION - Hibernate
i am beginner in hibernate.AS I M TRYING TO RUN YOUR FIRST APPLICATION OF HIBERNATE. BUT IT IS SHOWING exception Exception in thread "main   Hi friend... = session.beginTransaction(); System.out.println("Insert data 

Hibernate Questions

struts and hibernate
struts and hibernate  i am new in advanced java technology and i am... and also struts.xml file is work in background so what we can say its front end or back end. and same like hibernate is used to create database tables means its back 

Java Beginners

JSP,DB,SERVLET
JSP,DB,SERVLET  hi thank you for your reply.With this code i can insert the data successfully into database but once i give submit button..."); Statement st=con.createStatement(); int i=st.executeUpdate("insert 

Java Beginners

JSP,DB,SERVLET
JSP,DB,SERVLET  hi thank you for your reply.With this code i can insert the data successfully into database but In ajax.jsp once i give the name... in dose textfields....can u help me?????? Name: Ram I entered dtls of ram 

Hibernate Questions

Hibernate generation Id to postgreSQL
insert a new value on car_description, when I think that hibernate catch the min...Hibernate generation Id to postgreSQL  Hi, I'm trying to implement a id generator in Hibernate, but I'm having a problem. Hibernate doesn't seems 

Hibernate Questions

hibernate firstexample - Hibernate
hibernate firstexample  Hi all. i m new with hibernate,when i m trying to run my first application i m getting following exception. Error reading resource: Employee.hbm.xml give me the solution. Thank you 

JDBC Questions

i am inserting an image into database but it is showing relative path not absolute path
i am inserting an image into database but it is showing relative path not absolute path   hi my first page......... Image Enter your name..."); PreparedStatement pst = con.prepareStatement("insert into errortab values 

Advertisements Advertisements
 

 

 

DMCA.com