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
1 answer
hibernate test project not working
I was trying hibernate 3 for practice. and i am having this error.
Exception in thread "main" org.hibernate.MappingException: Error reading resource: test/Reservation.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:452)
at…

Jafar Ali
- 1,084
- 3
- 16
- 39
0
votes
1 answer
Is there any hibernate dialect to support Mysql UTF-8 National Character Type?
I am using NCHAR, NVARCHAR and NATIONAL VARCHAR.
http://dev.mysql.com/doc/refman/5.0/en/charset-national.html
I didn't find the support in MySqlDialect, MySql5INNODBDialect for the above data type.
public MySQLDialect() {
super();
…

Shashi
- 12,487
- 17
- 65
- 111
0
votes
1 answer
Migration Hibernate 1 to 3.3
We're migrating a project from hibernate 1 to hibernate 3.3.1, and we're a problem with some Querys:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
The code that we have now, used to work with hibernate 1 but get the…

Torres
- 5,330
- 4
- 26
- 26
0
votes
2 answers
Get multiple values from strut2 iterator
I am new to struts. I dont know exactly if my solution for my problem is correct or not.
My problem is I have two tables as shown below
I would like to create an HTML table based on the above tables, showing the fields, name of group, id of group,…

arjuncc
- 3,227
- 5
- 42
- 77
0
votes
1 answer
Hibernate can not save/update/remove an object
I have a very big problem with Hibernate.
When I try to Update or Save an element in a table, I have this error:
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
This…

Mohamed
- 2,342
- 4
- 21
- 32
0
votes
0 answers
Spring + hibernate 3 "No Hibernate Session bound to thread" But i have a transaction manager configured
i have this problem: "No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here". I'm using spring + hibernate 3. I already had checking this in other questions, but they don´t solve my problem.…

Diego Andrade
- 1
- 2
0
votes
2 answers
Why is Entity Manager clear() required? - Spring3 @Transactional, JPA2/Hibernate3
I have a JSF2 application that is using JPA2/Hibernate with Spring @Transactional. There are no @Transactional statements in the UI (backing beans), only in the service layer. (I am using @Transactional(propagation=Propagation.MANDATORY) in the…

John
- 101
- 1
- 7
0
votes
1 answer
Hibernate Model class and DAO
I have a simple question and I hope I can find answer here!
Can we mix hibernate model and DAO in same class?
Is there a design Pattern which specify this?
Thank you

Mohamed
- 2,342
- 4
- 21
- 32
0
votes
1 answer
I'm using jdbc &hibernate to connect my DB oracle11gr2.I need to upgrade client libraries from hibernate 3.1.3 to 4.1.6
I need to upgrade my client libraries i.e hibernate from 3.1.3 to 4.x.I'm preferring 4.1.6.I have done upgrading jdbc 4 to 5 successfully.Now the problem is we are going to latest release from 3.1.6. I'm seeing more than 250 errors.I'm bit confused…

gnr14
- 21
- 1
- 1
- 10
0
votes
2 answers
Oracle: Error when executing query
I have a table SyncTokenLock that has column lockName that is of CLOB type. When I run following query from SQLDeveloper -
select * from SyncTokenLock where
lockName='com.vmware.horizon.datastore.impl.ProvisioningStateDataServiceImpl';
I get…

devang
- 5,376
- 7
- 34
- 49
0
votes
1 answer
hibernate3:hbm2ddl goal no jdbc connection
I am trying to create the ddl script for my application which uses hibernate-3.4.0.GA. Here is my pom.xml

Raghvendra Singh
- 1,775
- 4
- 26
- 53
0
votes
2 answers
How to make the amazing Hibernate framework provide a connection object from its session?
Hibernate has deprecated the connection() because they think the framework is so awesome that no-one will ever need the connection. And no, this is NOT the same thing as providing the connection, unless you are coming from Haskell. Anyways, I have a…

chrisapotek
- 6,007
- 14
- 51
- 85
0
votes
2 answers
Not getting connection after 8 hrs in Hibernate 3.0
I have configured my hibenate.config.xml like this...But after some hours not getting the DB connection ...In MYSQL the wait-timeout is default 28800 or 8 hrs..and here it is less than that. No clue about it.

user1126046
- 37
- 1
- 2
- 9
-1
votes
1 answer
Where can I find Hibernate's End of support - Support Lifecycle - updates
Ours is a legacy product where it has its heavily hand-crafted hibernate API's based on 3.6.10.Final.
Now I want to evaluate the risk of not upgrading to 4.x or 5.x versions.
Upgrading is gonna be a nightmare, just to make it compiling.. :P
But I…

Sankarganesh Eswaran
- 10,076
- 3
- 23
- 24
-2
votes
1 answer
org.springframework.boot.SpringApplication with spring-core 3.2.5.RELEASE
I am going to create simple rest service using spring 3 and hibernate 3. There is no chance for me to use higher version of spring due to legacy business component that is based on hibernate 3.
For such purposes I've tried to use…

fashuser
- 2,152
- 3
- 29
- 51