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
1 answer

Hibernate Validator retrieve error messages without using Spring Framework

I am currently using hibernate-distribution-3.6.4.Final. New to Hibernate Validator. Problem: How should I retrieve error messages I got from adding annotations to databean/formbean? I know in Spring that everyone seems to use messages.properties…
0
votes
1 answer

Error seen during upgrade from Hibernate3 to Hibernate5

I am upgrading from Hibernate3 to Hibernate5. As a first step in the process I replaced the hibernate3.jar with hibernate-core-5.2.1.Final.jar. Also, updated the code that resulted in compile issues because of the jars change. However, when starting…
user811433
  • 3,999
  • 13
  • 53
  • 76
0
votes
1 answer

How can I change Hibernate's SessionFactory's default schema setting at runtime?

We configure our Session Factory bean in XML. The default session name is read from a properties file that is in the resource folder of the code. For a new purpose, I need to be able to change the default schema property to something else at…
Marvo
  • 17,845
  • 8
  • 50
  • 74
0
votes
1 answer

When upgrade to oracle11g-x64,we get into trouble

We ran an java web application server with weblogic10.3+bea jdk1.6+hibernate3+c3p0 0.9.1.2+oracle 9.2.8. When we upgraded the database to oracle11gx64 cluster with ojdbc6, we met many errors. First the following error message appeared and the…
0
votes
1 answer

I upgrading hibernate3 to hibernate4 also i did all the changes but i am getting 'Could not retrieve pre-bound Hibernate session' exceptions in logs

2016-01-28 12:27:46.433 3a37210f D 00000000000000000000000000000000 002e:Could not retrieve pre-bound Hibernate session "org.hibernate.HibernateException: No Session found for current thread at…
user3198259
  • 178
  • 3
  • 13
0
votes
1 answer

Issues with upgrading Hibernate 3 to hibernate 4

I have been upgrading my project from Hibernate 3.x version to Hibernate 4.1.4. Now I have a peculiar problem with me. After placing all the required JARs and referring them on the classpath, builing java.lang.NoClassDefFoundError:…
Pavan Kumar
  • 463
  • 2
  • 10
  • 18
0
votes
2 answers

How to keep hibernate3-maven-plugin HBM2DDL from printing to console

I used the hibernate3-maven-plugin to automatically create a SQL script I can use to create a database schema in a new database. I do this via the hbm2ddl tool. I thought that when I instructed it to write the SQL to a file it would stop…
Dave
  • 21,524
  • 28
  • 141
  • 221
0
votes
1 answer

How to output two ddl files at the same time with using maven hbm2ddl plugin

Our application needs to use two different kinds of databases.One is oracle, the other is mysql and we want to use maven plugin hbm2ddl to generate the ddl file, and want to output the two ddl files at the same time, I don't know how to set the…
Daniel Cai
  • 53
  • 1
  • 3
0
votes
0 answers

Table not found error in h2 using hibernate3

I am newbie to h2 database.i created the sessionfactory like below.
Selva
  • 1,620
  • 3
  • 33
  • 63
0
votes
2 answers

nebeans does not create reverse engineering files for h2

I am newbie to h2 database.I have created some tables in h2 using browser console. when i try to create the hibernate.cfg file it creates like below.
Selva
  • 1,620
  • 3
  • 33
  • 63
0
votes
0 answers

Use of @AttributeOverride

My Embeddable class is like below. `@Embeddable public class AddressBean { private String streetAddress; private String address1; private String address2; private String cityName; private String stateName; private String…
Thirupathig
  • 166
  • 9
0
votes
0 answers

Exception on integrating Hibernate3.2 with Struts2 and Tiles2 framework

I am getting the following exception when I am adding Hibernate jar to Struts2 with Tiles integrated web Application : org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance…
0
votes
3 answers

How to check all values for a particular column in a week

i have a table called timesheet.In that i has below rows ID Status ProjId ActId Date 1 pending 1 1 2014-aug-07 2 denied 1 2 2014-aug-08 3 saved 1 3 2014-aug-09 4 approved 1 4 …
Selva
  • 1,620
  • 3
  • 33
  • 63
0
votes
1 answer

tomee with hibernate 3

I am deploying an enterprise app (ear) in tomee as Proof of Concept. Our app was running in jboss 4 before, we are looking for options to migrate to JBoss 7 or tomee. I am doing a POC with ejb3 and hibernate 3. This is working fine in JBoss 7. When…
Venu
  • 303
  • 6
  • 21
0
votes
1 answer

two transaction issue with Hibernate 3

In our application we are using Hibernate 3. Recently I faced one issue in transactions. I have some code in following manner method1() try{ tx = session.beginTransaction(); //New object which needs to be stored …
Gaurav
  • 811
  • 9
  • 21
1 2 3
8 9