Questions tagged [hibernate3]

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.

135 questions
0
votes
2 answers

Spring with JPA pure approch

I have a problem with Spring and JPA. Basically I try to use JPA with Spring with a pure approach, or better, without explicit references in the code to Spring framework with the exception of the @Transactional. So I wanted to know where wrong. My…
giulius
  • 409
  • 3
  • 11
  • 25
0
votes
0 answers

Transactional problem after migrating Hibernate from 3 to 4

The problem I've migrated from Hibernate 3.6.10 to 4.3.11. These are my pom.xml properties: 4.3.11.Final I'm working with legacy code and I've…
Alfonso Tienda
  • 3,442
  • 1
  • 19
  • 34
0
votes
1 answer

What is wrong with my Spring and Hibernate configuration?

What is wrong with this configuration? I'm using Spring 3 and Hibernate 3.6 and trying to set up to use DAOs. I'm seeing two errors in hibernate.cfg.xml. The first is on the session-factory tag- The content of element type…
coder
  • 6,111
  • 19
  • 54
  • 73
0
votes
1 answer

How to make service use particular txAdvice in Spring?

I'm trying to upgrade my project and so I've come to transactions. This is how I did it up to now.
Rihards
  • 10,241
  • 14
  • 58
  • 78
0
votes
0 answers

How to implement Naminig Strategy in hibernate 3 with entity manager?

I want to change the column name("size") for entity class, size is a keyword in oracle so i want to modify at runtime via NamingStrategy. But unable to success. I have added a property in my persistence.xml. "
0
votes
2 answers

Why is my code not iterating over my Hibernate query result set?

I am firing a query off to Hibernate which returns a list of 25 elements. I then iterate over the list to print out each element. The problem is that it is printing out the first element 25 times, not iterating through the elements. Here the code…
Amol
  • 21
  • 1
  • 8
0
votes
3 answers

Hibernate get Collection from another session

Hi i've been getting the infamous "no session or session was closed" i know that is because i am trying to invke a collection of a hibernate persisted object in another session, so is there a way to actually do this without having to create the…
Necronet
  • 6,704
  • 9
  • 49
  • 89
0
votes
0 answers

Why hibernate id's are not getting increased when deployed in two servers in jboss 7.1.1 community version

I have developed a web application with the configuration hibernate 3 and jboss 6.4.0 EAP, now I have migrated my application to jboss 7.1.1 community version. When I first deployed the application my primary key id's are not getting increased, then…
0
votes
1 answer

javax.el.ELException: Cannot convert Protocol@7ebc9002 of type class Protocol to class Protocol$$EnhancerByCGLIB$$22af7fa3 (lazy loadding)

I struggle to make hibernate 3.1 lazy loading working with JSF 1.2 Caused by: javax.el.ELException: Cannot convert foo.bar.Protocol@7ebc9002 of type class foo.bar.Protocol to class foo.bar.Protocol$$EnhancerByCGLIB$$22af7fa3 at…
flodor2
  • 87
  • 1
  • 10
0
votes
1 answer

org.hibernate.exception.ConstraintViolationException: could not update - Auto-increment column in DB is NULL

I am upgrading my System's hibernate3 package from version "3.1.1" to "3.6.10". As I already migrated it to the 3.6.10 version, I am seeing an exception: [6/12/17 9:54:57:365 SGT] 000000a2 SystemOut O [DEBUG]…
bbd224
  • 59
  • 2
  • 12
0
votes
2 answers

How to map derived identities in hibernate 3?

I have the following situation: @Entity class A{ @Id @SequenceGenerator(name = "SEQ_AID", sequenceName = "SEQ_AID") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_AID") private Long aId; …
Neuquino
  • 11,580
  • 20
  • 62
  • 76
0
votes
1 answer

Dynamic classes for hibernate

Looking at the documentation for Hibernate 3 and even 4 as well, it seems that one has to create the mapping classes before hand. All those classes defined in hibernate.cfg.xml or hibernate.properties files are loaded as soon as the configuration…
Amol Dixit
  • 611
  • 7
  • 13
0
votes
1 answer

Multiple Inner join in HQL

Below is my sql which i want to convert to HQL. Can someone please help me with this ? I am also posting my HQL which is currently giving me a nullpointer exception - select ti.tax_id_no, u1.user_id, u1.user_nm_fst, u1.user_nm_lst, …
0
votes
1 answer

how to set query level time out in hibernate 3 + oracle using java

I want to stop a long running query in Oracle + Hibernate 3 + Java. I have tried setting the timeout using the code snippets below, without success. 1. query = session.createQuery("from table"); query.setTimeout(1000); list =…
Gowtham
  • 1
  • 2
1 2 3
8 9