data « Oracle « JPA Q&A





1. not getting data from oracle database when accessed using hibernate application    coderanch.com

I am trying to get data from oracle database from following client application package com.hibernate.raja; import com.hibernate.raja.beans.*; import com.hibernate.raja.utils.*; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import org.hibernate.cfg.Environment; import org.hibernate.Transaction; import org.hibernate.Query; import java.util.*; public class Main { public Main() { // TODO Auto-generated constructor stub SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); Session session = sessionFactory.openSession(); ArrayList arrayList = null; String ...

2. No more data to read from socket with oracle    forum.hibernate.org

Senior Joined: Tue May 10, 2005 9:00 am Posts: 125 Hello, i get this error when one of my application is trying to access oracle storage using Hibernate. I have absolutely no clue on what is going wrong. Does someone have any idea??? Hibernate version: 3.0.x Mapping documents: Code: ...

3. retreiving data from oracle database    forum.hibernate.org

No problem, you must edit the hibernate configuration file (hibernate.cfg.xml), and change the database properties. At this time i use mssql, so i don't have oracle example, but i find this for you: xxxxx jdbc:oracle:thin:@localhost:1521: org.hibernate.dialect.Oracle9Dialect xxxxx oracle.jdbc.driver.OracleDriver You must edit the values in this example. After this, all the hql queries runs in ...