-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to use Hibernate to persist a class that looks like this:
public class Item implements Serializable, Comparable<Item> {
// Item id
private Integer id;
// Description of item in inventory
private String description;
// Number of items described by this inventory item
private int…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I am having some problems trying to work with PostgreSQL and Hibernate, more specifically, the issue mentioned in the title. I've been searching the net for a few hours now but none of the found solutions worked for me.
I am using Eclipse Java EE IDE for Web Developers. Build id: 20090920-1017…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I'm trying to run a simple GWT project where I'm trying to do a simple persitence via hibernate to a HSQLDB database. The database I'm using I have been using for at least 2 years with several osgi applications without any problems. So all I done is reused the same configuration and added a simple…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
According to the tutorial : http://jpa.ezhibernate.com/Javacode/learn.jsp?tutorial=27hibernateloadvshibernateget,
If you initialize a JavaBean instance with a load method call, you can only access the properties of that JavaBean, for the first time, within the transactional context in which it…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I use netbean 6.7.1 to write "hello world" witch hibernate, but I get some errors, plz help me, thank you very much.
my exception
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Copying 1 file to F:\Documents and Settings\My Dropbox\DropboxNetBeanProjects\loginspring\build\web\WEB-INF\classes
compile-single:
run-main:
Oct…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using Hibernate with OpenSessionInViewInterceptor so that a single Hibernate session will be used for the entire HTTP request (or so I wish). The problem is that Spring-configured transaction boundaries are causing a new session to be created, so I'm running into the following problem (pseudocode):
Start…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
I am new to hibernate and trying integrate hibernate with an existing spring based application.
I configured session factory and transaction manager, transaction proxy template.
I am also using Quartz scheduler in this application.
When I run the application, I am getting the following…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In the Hibernate reference, it is stated several times that
All exceptions thrown by Hibernate are fatal. This means you have to roll back
the database transaction and close the current Session. You aren’t allowed to continue
working with a Session that threw an exception.
One of our legacy…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need this roadmap of a Hibernate managed object instance.
First, I create an instance with initial properties and persist this object in a db.
Then session associated with this object is closed.
But still, I serialize my object and on the next step deserialize it, invoke some setters,
and again…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I've read somewhere that when a session is flushed or a transaction is committed, the session itself is closed by Hibernate. So, how can i reuse an Hibernate Session, in the same thread, that has been previously closed?
Thanks
>>> More