Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML
 
 
Hot Web Programming Job

 

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials

Core Java
JSP
Servlet
JDBC
Hibernate
Struts 1
Struts 2
JSF
Spring
J2EE
J2ME
Web Services
Ajax
Dojo
MySQL
Latest Comments
Null pointer excep
swap program faile
hi.........
very good
navigaton mobile
  All Comments...
 

 

 
Struts Tutorials
*Stuts TOC
*Apache Struts Introduction
* Struts Controller
* Struts Action Class
* Struts ActionFrom Class
* Using Struts HTML Tags
*Struts Validator Framework    
*Client Side Address Validation    
*Struts Tiles
*tiles-defs.xml
*Struts DynaActionForm
*Struts File Upload
*Struts DataSource
*AGGREGATING ACTIONS
*Internationalization
Struts Resources
*Struts Books
*Struts Articles
*Struts Frameworks
*Struts IDE
*Struts Alternative
*Struts Links
*Struts Presentations
*Struts Projects
*Struts Software
*Struts Reference
*Struts Resources
*Other Struts Tutorial
Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Have tutorials?
Add your tutorial to our Java Resource and get tons of hits.

We offer free hosting for your tutorials. and exposure for thousands of readers. drop a mail
roseindia_net@yahoo.com
 
   

 
Join For Newsletter

Powered by groups.yahoo.com
Visit Group! Post Questions!

Hibernate Hibernate_architecture

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

29 comments so far (post your own) View All Comments Latest 10 Comments:

conten is fabulous and fully explained.I really impressed by this content and i got a very good knowlege from these topic.

Posted by Lucky uthra on Monday, 12.22.08 @ 05:31am | #83042

Hi,
This tutorial is easy to understand. It is a very good tutorial for beginners.

Could you please give a reason, why hibernate is lacking performance in transaction management and connection management.

Thanks in advance....

Posted by sheeva on Thursday, 10.2.08 @ 17:11pm | #80843

wat is different between struts and hibernate?

Posted by siva on Monday, 09.15.08 @ 19:01pm | #79608

Hi
Even iam getting the same error.Can you please email me if u know the solution for it now

Thanks in advance

Vineela

Posted by Vineela on Wednesday, 09.10.08 @ 00:53am | #78369

I think you are missing something in the configuration. Where is the Database name?

<property name="hibernate.connection.url">jdbc:sqlserver://localhost:1605</property>

Posted by admirm on Thursday, 08.14.08 @ 20:10pm | #72843

I want know if any one can help me about create my first application hibernate and eclipse

Posted by mustapha on Wednesday, 03.26.08 @ 02:14am | #54347

best for...bigginers.....but i need much more examples........cn u help?

Posted by sincy raj on Thursday, 01.17.08 @ 09:30am | #45404

I am desparetly looking example of hibernate.

Posted by Aditya on Friday, 12.28.07 @ 13:28pm | #44034

I am running into the following error when i try to run your example.Can anyone help me out?

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120)
at FirstExample.main(FirstExample.java:18)

Posted by amar on Saturday, 12.22.07 @ 02:08am | #43293

hai this is srinu this is very useful to beginners.

Posted by srinu on Friday, 12.7.07 @ 15:13pm | #41525

Hai
this is venkat
i want brief explnation of Hibernate and i want important questions?
ok

Posted by venkat on Monday, 11.12.07 @ 20:00pm | #36985

what is the use of hibernet?
how it is used ina project?
what are the benefits of hibernet

Posted by mujeeb rahman on Wednesday, 10.17.07 @ 11:45am | #34256

AT first how to start about hibernate.
Let, u don't know about hibernate.But u have to
work about hibernate.Then how to start.And
how to finish.
pls inform me.

Posted by shamema on Sunday, 09.30.07 @ 11:27am | #30498

Good job,it's usefull to beginner!
Come on!

Posted by ethan on Thursday, 08.2.07 @ 07:35am | #22465

hi this is very usefull for the beginners in hibernate,

Posted by shashank reddy on Monday, 07.23.07 @ 21:10pm | #21789

Hi,

I am working this example with SQL Server 2005 and RAD 6.0.

Password to connect to my Database server is "<sa>"

Here i wonder how to mention the password value in hibernate.cfg.xml file.

My hibernate.cfg.xml file is like this.

<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:sqlserver://localhost:1605</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password">sa</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
<mapping resource="contact.hbm.xml"/>
</session-factory>
</hibernate-configuration>


But when i try to run this example i am getting errors like

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Inserting Record
Done
Exception in thread "main" org.hibernate.exception.SQLGrammarException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:59)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:384)
at org.hibernate.jdbc.JDBCContext.connect(JDBCContext.java:141)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:88)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:73)
at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:66)
at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:130)
at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1809)
at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2171)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:46)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:669)
at roseindia.tutorial.hibernate.FirstExample.main(FirstExample.java:36)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'root'.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.processLogon(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:539)
at java.sql.DriverManager.getConnection(DriverManager.java:158)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:381)
... 15 more

So anybody can give me suggestion to resolve the problem.

I appreciate the response.

Posted by kuppy on Tuesday, 07.10.07 @ 01:44am | #20987

this was a great help in wrapping my head around things. Thank you and good job

Posted by Justin on Thursday, 06.14.07 @ 23:44pm | #19244

hello Everybody ,It is Very Good Document for Introduction part.But it is not sufficient to describe Whole thing about Hibernet....I Mean Pls Describe Hibernet.properties Files and Xml Mapping.

Posted by vipul on Wednesday, 05.2.07 @ 13:38pm | #15163

would u please ellaborate more on the hibernate mappinfg files

Posted by Satish Kumar.K on Thursday, 04.12.07 @ 11:51am | #13936

Yah it is very useful to gain knowledge on hibernate.
Pls can u give me detailed information with example of CASCADE

Posted by Sathish Kumar on Tuesday, 03.6.07 @ 13:03pm | #10826

Any one tell me about Hibernate Mapping,HQL quaries in hiberante



Regards,
Kalyan Sunkara


Posted by kalyan on Tuesday, 03.6.07 @ 04:17am | #10777

Given that
Hibernate Connection management service provide efficient management of the database connections.
How it is efficient?

Posted by prasad on Wednesday, 02.14.07 @ 19:45pm | #7896

Nice to see such detailed documentation... Thanks...

Posted by Vivek on Thursday, 01.25.07 @ 16:20pm | #4320

It is very useful for hibernate learner...the diagramatic representation of ARCHITECTURE is really nice.

Posted by SenthilKumar.T on Friday, 01.12.07 @ 12:12pm | #3271

It is really a nice stuff which updates you in a very less time about the hibernate

Posted by Saket Kumar Verma on Monday, 01.8.07 @ 12:51pm | #2930

Hi,

Wonderful.

But one request from my side that would u please provide information regarding the railes.

Posted by Sudhakar Reddy on Monday, 12.25.06 @ 16:43pm | #1976

it is really a very bore and bogus topic. why you all are wasting your time on it.

Posted by Spectator on Thursday, 12.21.06 @ 18:54pm | #1405

Hi
Can u tell me some thing about hibernate core ,hibernate manager,hinernate annotations

Posted by udhayakumar on Wednesday, 12.20.06 @ 18:19pm | #1363

the diagramatic representation of ARCHITECTURE is really nice ...
thnaks

Posted by Sandip Trivedi on Wednesday, 12.6.06 @ 16:56pm | #504

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.