Re: [Hibernate] relationship not getting saved

2003-10-06 Thread Prasad Iyer
What you did was created mapping file first and from it you created the Class files I did exactly opposite I created the class files through poseidon first and then created mapping file for it. You can choose anyway you like. just specify 'inverse=true' your class would be looking like this

[Hibernate] What's needed for JBoss integration?

2003-10-06 Thread Bill Burke
Hi all, Just wondering what you all need/want for better Hibernate-JBoss integration. What is lacking. What needs improving. What sucks, etc... Some have pointed out some performance problems with our classloading, we are working on that Is JCA the way to go with Hibernate/JBoss integra

[Hibernate] Schema Update on the fly is wacked

2003-10-06 Thread Travis Reeder
Couple issues here: 1: posted here: http://forum.hibernate.org/viewtopic.php?t=604 2: I also get this one all the time Oct 6, 2003 3:58:55 PM net.sf.hibernate.tool.hbm2ddl.SchemaUpdate execute SEVERE: Unsuccessful: create table Notification (id BIGINT NOT NULL AUTO_INCREMENT, userKey BIGINT, re

[Hibernate] Tomcat 4.1.18 Shutodwn is not 100% With Hibernate 2.0.3 & JCS

2003-10-06 Thread Doug Pham
Hi All, I am a newbie to Hibernate and is working on using in ony of the many web application our company developed.  There were some slowness when loading data with many one-to-many and many-to-one relationships so I tried out the cache.  I got it working to a point where it is acceptable but

RE: [Hibernate] Bug with cursors?

2003-10-06 Thread Les Hazlewood
Title: Message Thanks for the quick reply Gavin...I knew that was an extreme case...   Les -Original Message-From: Les Hazlewood [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 2:51 PMTo: [EMAIL PROTECTED]Subject: RE: [Hibernate] Bug with cursors? Is this a

RE: [Hibernate] Bug with cursors?

2003-10-06 Thread Les Hazlewood
Title: RE: [Hibernate] Bug with cursors? Is this a Hibernate bug or an Oracle/JDBC problem? The Oracle error message says you've exceeded the maximum number of open cursors allowed, due to the number of queries being executed.  I think that means that you haven't configured Oracle to handle

Re: [Hibernate] onUpdate

2003-10-06 Thread Gavin King
Please check the JavaDoc for the semantics of onUpdate(). Questions like these should be directed to the user forum, not the devel list. TIA. kiuma wrote: Hello, I'm using an hilo generator under jboss but the Lifecycle.onUpdate is not called. while all the onSave onLoda etc are correctly call

Re: [Hibernate] Bug with cursors?

2003-10-06 Thread Gavin King
There is no bug. (1) 1000 queries in a session!? Are you sure you understand how to use Hibernate sessions correctly? (2) Are you fully aware of the difference b/w list() and iterate() ? They have quite diff semantics. (3) Hibernate.close(Iterator) may be used to close an Iterator _immediately

[Hibernate] Bug with cursors?

2003-10-06 Thread Germán Ruiz
Hi. I'm afraid I found a bug in the cursors release. It appears everytime I execute several queries (more than 1000) in the same session. I'm working with Hibernate 2.0.3, using jdbc driver for Oracle 8.1.7 My code is something like this: Session session = factory.openSession(); Query query =

Re: [Hibernate] relationship not getting saved

2003-10-06 Thread dosapati
Thank you prasad for your quick response. I think this should work two-way. 1) I create WorkLocation object first and save it. And I create Asset object. then I set _asset.setWorkLocation(_workLocation). Then I call _session.save(_asset). This will save the asset and the association. 2)I

[Hibernate] onUpdate

2003-10-06 Thread kiuma
Hello, I'm using an hilo generator under jboss but the Lifecycle.onUpdate is not called. while all the onSave onLoda etc are correctly called . How can i make the onUpdate method be called ? thx in advance, kiuma --- This sf.net email is spons

Re: [Hibernate] relationship not getting saved

2003-10-06 Thread Prasad Iyer
There is a problem in your bean. please check for this code. Every object of Asset in the Collection should in turn have the relationship with the WorkLocation. That is you might have got function like this in WorkLocation public void addAsset(Asset _asset){ asset.add(_asset); _asset.setWo

[Hibernate] relationship not getting saved

2003-10-06 Thread dosapati
I dont know wheteher I can post this question here or not. Please let me know if there is any other users group. I am facing this problem with one-to-many association. association is not getting saved with one-to-many relation class, but it is getting saved with many-to-one relation class. Examp

Re: [Hibernate] HibernateException: identifier of an instance altered

2003-10-06 Thread Tom Herrick
Never mind. Shortly after posting this I discovered the cause of my problem. Some of the records in the database really did have spaces after the value, but MS SQL Server is a little too *helpful* in handling whitespace, so queries like 'select len(catalognumber) ...' or 'select ... where ltr