[Hibernate] Casading update

2003-08-25 Thread Prasad Iyer
Hi, I got this problem with casading insert I am using bidirectional relationship in every parent child relationship. All the mapping and relationship has been created as per the need. The problem is when I try to insert it gives me following error.   net.sf.hibernate.HibernateException: Ano

Re: [Hibernate] MS SQL performance and Unicode

2003-08-25 Thread Patrick Burleson
Even more fun info here, is that if your JDBC driver (like say the DataDirect driver) uses NVARCHAR parameters with maximum widths (4000), SQL Server 7.0 will take forever to give you results. In our case, from 1 second using a VARCHAR (or even a shorter NVARCHAR) to 18 seconds. This problem doe

[Hibernate] Bidirectional relationship

2003-08-25 Thread Prasad Iyer
Hi, Can somebody help me with the Bidirectional relationship. I have made this small example which I need to use I am using cascading update. But I think I am missing something. The kittens are not getting added. I am trying this with hypersonic database which then would be changed to Micr

Re: [Hibernate] Subclasses (using discriminator) in a set

2003-08-25 Thread Jenica Humphreys
Just FYI: I did not find a way to accomplish this with Hibernate 1.2, but was able to accomplish it with Hibernate 2.0.2 using the "where" attribute of the set tag. However, I think this should be default functionality. If you have subclasses with discriminators, and another class has a set o

Re: [Hibernate] MS SQL performance and Unicode

2003-08-25 Thread Serge Knystautas
Patrick Burleson wrote: Even more fun info here, is that if your JDBC driver (like say the DataDirect driver) uses NVARCHAR parameters with maximum widths (4000), SQL Server 7.0 will take forever to give you results. In our case, from 1 second using a VARCHAR (or even a shorter NVARCHAR) to 18 seco

[Hibernate] Lazy Loading, upwards?

2003-08-25 Thread Graeme Knight
Hello. I have checked the FAQs and docs on this, but have not come to a conclusion, so perhaps someone can suggest something: I am representing a tree structure using Hibernate persistent objects. Each node in the tree can represent another node or a leaf. The children of a node are stored usin

RE: [Hibernate] Lazy Loading, upwards?

2003-08-25 Thread Graeme Knight
Hi. Nope. I've not looked into using proxies yet (will do). I'm just using the persistent objects themselves in a very short lived Session. Rgds, Graeme. -Original Message- From: Schnitzer, Jeff [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 3:26 PM To: Graeme Knight; [EMAIL PR

RE: [Hibernate] Lazy Loading, upwards?

2003-08-25 Thread Schnitzer, Jeff
> From: Graeme Knight [mailto:[EMAIL PROTECTED] > > Nope. I've not looked into using proxies yet (will do). I'm just using the > persistent objects themselves in a very short lived Session. If entity A has member field of entity B, Hibernate has to populate it with _something_... and if you want

RE: [Hibernate] MS SQL performance and Unicode

2003-08-25 Thread Eric Pugh
No, I can chime in, that I as well didn't know this. Out of curiosity, has anyone put together a unit test that I could run to demo the differences? Would this be something to add to hibernate, or is it too random? Eric > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROT