Hibernate ORM (Hibernate in short) is an open source object-relational mapping library for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database.
Questions tagged [hibernate3]
135 questions
0
votes
2 answers
Hibernate @OneToOne Mapping
I have following piece of code..
working fine (staffTbl is not getting fetch lazily)
@OneToOne(fetch=FetchType.LAZY)
@JoinColumns({@javax.persistence.JoinColumn(name="inst_id", referencedColumnName="inst_id", insertable=false, updatable=false),…

Vikash Tiwari
- 113
- 1
- 10
0
votes
2 answers
SessionFactory in Hibernate
I am using hibernate-2.1 and "net.sf.hibernate.SessionFactory" class in my spring project.
Now I am switched to Spring 2.5.6.A, where they are using hibernate3 and I am not able to find out the "net.sf.hibernate" package in that.
But I found…

komal
- 743
- 2
- 7
- 6
0
votes
1 answer
getting error during 'select query' in postgresql with hibernate
we are using ppas9.3 database and hibernate3 in our project. We are using a method that is already calling two other methods. In one method we are executing 'select' query(that becomes fail to execute because that 'column doesn't exist' ) and after…

Krishna
- 795
- 2
- 7
- 24
0
votes
1 answer
How to get Name from Code to display on records on JSP by using Strius2 and Hibernate3 Entity Mapping relationship
I have two tables Group(Parent) andType(Child) and they are mapped by GroupId. This is done by Hibernate @OneToMany Mapping.
My Issue is When I am displaying records of Type Table in JSP it is displaying TypeName & GroupId because I am using…

Shubhankar
- 87
- 3
- 6
- 16
0
votes
1 answer
Not Able to Save/Update details from richfaces popup panel
I am working on richfaces4,
when i am trying to edit details from a popup panel,i am not able to save/update the edited details into my database.can anybody help me to solve this.
My XHTML Page is as follows:

VSK
- 250
- 4
- 13
0
votes
1 answer
Not able to get data in popup panel in richfaces
I am not able to get the required data in rich popup panel when I click on edit link. Can anybody help me in resolving it.
When I am trying to edit row details, I am not able to get the required data in their respective fields for the first time,…

VSK
- 250
- 4
- 13
0
votes
1 answer
Hibernate connection error
I am using Hibernate 3.6.10, MySQL database in my Play(Play 1.2.5) application. I am getting this error everyday
01:05:02,304 ERROR ~ The last packet successfully received from the server was 39,593,644 milliseconds ago.
The last packet sent…

Ronald Randon
- 1,141
- 3
- 13
- 19
0
votes
1 answer
Play Framework 1 hibernate integration
I am using Play 1.2.5. I am using hibernate in my play project. I have added the database info in application.conf as follows
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/dbname
db.user=username
db.pass=password
Also I have…

Ronald Randon
- 1,141
- 3
- 13
- 19
0
votes
1 answer
Autocomplete in Hibernate 3, no JTA, no EJB, no JPA
As I read in the PrimeFaces showcase, a converter is needed for my autoComplete to work, so I did as follows:

Rasshu
- 1,764
- 6
- 22
- 53
0
votes
3 answers
Hibernate3 --> Hibernate 4 and issues (Lazy...)
I'm trying to update the libraries of my project (from Hibernate 3.2.1 GA to Hibernate 4.2.8)
This (complex) application use LAZY loading and get the object later only when we need it.
-->it seems to work differently now because I get some…

stof
- 1
- 1
0
votes
1 answer
Updating object doesn't work properly in Hibernate 3
Pojo object:
public class Test {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name="id")
private Integer id;
private String name;
@Column(columnDefinition="int default 100")
private int number;
…

Saorikido
- 2,173
- 2
- 26
- 37
0
votes
1 answer
hibernate second level cache using jboss cache in clustered environment
hi i am using following in my project
jboss server(4.3 EAP) in 'all' configuration
spring 3.0
hibernate 3.0
jboss cache 1.x
snippet of applicationContext.xml to enable second level cache is
…

sharad7188
- 85
- 5
0
votes
1 answer
hibernate 3.2.6 or 3.3.2 and jboss 4.2.3.GA deployed app run fails with c3p0 error
I deploy app having hibernate dependency.
Jboss AS 4.2.3.GA contains hibernate3.jar in server/default/lib.
Tried to load SessionFactory and and get.
With
java.lang.ClassNotFoundException: No ClassLoaders found for:…

Vyacheslav
- 3,134
- 8
- 28
- 42
0
votes
1 answer
db2 count(*) order by with hibernate criteria
I tried this code:
List resultList = new ArrayList();
Criteria criteria = createCriteria(SystemLogFile.class);
criteria.add(Expression.eq("clientId", clientId));
criteria.addOrder(Order.desc("systemLogFileId"));
if (page == -1) {
…

senior
- 2,196
- 6
- 36
- 54
0
votes
1 answer
null pointer exception in while buildSessionFactory in Hibernate
After make a few research, and none of those can help me. I decided to create a new question about this.
Code that generate error:
public class HibernateUltils
{
static SessionFactory sessionFactory;
public static Session…

Doan Cuong
- 2,594
- 4
- 22
- 39