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
4
votes
2 answers

Upgrade to Hibernate 3.6 errors with reverse engineering

I have found a few threads on various sites that seem to touch on this problem, but I am having no luck. It seems as though it simply can not be done. I get the Caused by: java.lang.IncompatibleClassChangeError: Found interface…
nook
  • 2,378
  • 5
  • 34
  • 54
3
votes
1 answer

Use LEFT JOIN between two table in HQL

I have two POJO classes. One is EmployeeTO and another one is AddressTO. EmployeeTO has one variable with name EmployeeId and AddressTO also has one variable with name EmployeeId. I want to apply a left join between EmployeeTO's EmployeeId and…
Vishal Mittal
  • 41
  • 1
  • 7
3
votes
2 answers

Struts 2 integration with Hibernate 3 NullPointerException

I am following a tutorial to integrate the Struts and Hibernate and getting a NullPointerException. The error I am getting is Sep 24, 2013 12:25:54 AM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Sun's JavaServer…
user251287
  • 101
  • 1
  • 3
  • 12
3
votes
1 answer

Hibernate Validator 5 version compatibility with Hibernate 3.5

Is it safe to use the Hibernate Validator 5.0.1 with Hibernate 3.5.4? From what I've read it should not be a problem and I'm not running into any errors so far (i.e. application compiles, runs and tests pass), but I'm not sure if they fit well…
dvdgsng
  • 1,691
  • 16
  • 27
3
votes
1 answer

Can't configure Jasypt + Hibernate

I use Hibernate3 with a MySql DB and am trying to add the Jasypt library to handle encryption of user password. I configured Jasypt in the hibernate.cfg.xml as follows:
amite
  • 140
  • 1
  • 10
2
votes
1 answer

java.lang.ClassCastException: com.sun.proxy.$Proxy45 incompatible with oracle.sql.CLOB

In need of help from experts. Hibernate version we use: 3.6.0.Final. After saving the hibernate Pojo in oracle DB and once trying to commit under JTA transaction, the below error occurs: Exception caught from before_completion synchronization…
2
votes
0 answers

Migrate Hibernate3 configuration - Overriding table mappings

I have to migrate a hibernate3 spring4 configuration to hibernate5 (or at least 4). So much for the question "Is anybody still using hibernate3?" The migration involves replacing spring's AnnotationSessionFactoryBean which is not supported for…
flowerrrr
  • 21
  • 1
2
votes
3 answers

PropertyNotFoundException: Could not find setter for column_name on class

I am facing the with hibernates named query and transform to bean. Here is the code: query = session.getNamedQuery( "LAST_ADDED_DOC" ); query.setString( "module", inNpUploads.getModuleName() ); query.setString( "mapping", inNpUploads.getMappingId()…
Mohammad Faisal
  • 5,783
  • 15
  • 70
  • 117
2
votes
1 answer

Struts2 + Spring4 + Hibernate3 pagination

I'm developing a web application using MVC architectural pattern. Struts2 (version 2.3.24) is used for the Business Logic and Presentation Layer Spring (version 4.1.0) is the dependency injection engine Hibernate (version 3.6.10) is used for the…
IlGala
  • 3,331
  • 4
  • 35
  • 49
2
votes
1 answer

Unable to get instance of EntityManager?

I am working on spring and hibernate, i am getting this following exception which i am unable to debug Below is the error stacktrace: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger…
VSK
  • 250
  • 4
  • 13
2
votes
0 answers

HQL-query with discriminator column cannot query by type of subclass

I'm using JPA1.0 and Hibernate 3.3. (There is currently no option to upgrade). I want to query a generic table GenericOrderType with @Inheritance(strategy = InheritanceType.SINGLE_TABLE) strategy and @Discriminatorcolumn(name="ORDER_TYPE"). Running…
feder
  • 1,849
  • 2
  • 25
  • 43
2
votes
1 answer

One to many cascade All is not setting parent id while child entry insertion

I am using Hibernate 3 annotations. I have a table 'product' and child table 'product_spec' with one-to-many relation. When i do hibernateTemplate.save(product) it is giving error could not insert: [com.xx.ProductSpec]; SQL [insert into…
Rajeev Naik
  • 61
  • 2
  • 9
2
votes
3 answers

Hibernate 3.0 + ElementCollection class missing

I created a small desktop project using Hibernate, to understand how enterprise patterns are applied in there. I'm using annotations, and wrote a class to wrap my session factory public class Hibernation { private static final SessionFactory…
Tom
  • 43,810
  • 29
  • 138
  • 169
2
votes
4 answers

How do I get the number of rows with Hibernate Criteria queries using MySQL 5?

We've been using HQL mostly. But we have this complex search form that contains many joins so I thought I would try my luck at using Criteria's (never have before). I like the syntax much better and it fits the complex form we have. My first…
cbmeeks
  • 11,248
  • 22
  • 85
  • 136
1
vote
3 answers

Hibernate - Limit eager loading collections to one table deep

I have for example, a DB with the following entity and relation structure: [Person] has many [Skills], [Skills] has many [Actions] In the .hbm.xml's, I assign one-to-many relations for person > skills, skills > actions. In a query, I would like to…
Eric
  • 1,953
  • 4
  • 24
  • 33
1
2
3
8 9