Re: [Hibernate] [Maybe OT] odmg.jar licence

2003-10-28 Thread Christian Bauer
On 27 Oct (15:48), [EMAIL PROTECTED] wrote: > does anybody know the exact licensing terms of the odmg.jar file? I was > unable to find anything mentioning something about it. http://forum.hibernate.org/viewtopic.php?t=924813 -- Christian Bauer [EMAIL PROTECTED] ---

[Hibernate] one to one relationship Hiberbate 2.0.3 MySQL 4.0.14b not working

2003-10-28 Thread A Nonymous
Hi Guys,   Environment: Hibernate 2.0.3, MySQL 4.0.14b, Windows 2K.   have many-to-many, many-to-one, and one-to-many working like a charm.   struggling with enforcing the same key for a one-to-one.   example user.hbm.xml:                         example address.hbm.xml:          

[Hibernate] Business Rules

2003-10-28 Thread Miguel Henley
Hi all, Please, take a look at the the following scenario: A "Order" persistence class is associate to a "Customer" persistence class and the business rules is: We can not make a new Order if the Customer associated with that Order has some credit restrictions. Where is the right place to put

RE: [Hibernate] Business Rules

2003-10-28 Thread Eric Pugh
I lean towards not putting that kind of logic in some sort of Manager object.. I find that when you start mixing busienss logic with data objects, soon your business logic tier and data tier become all intertwined. I would lean towards OrderManager or something where you have a call like: OrderM

[Hibernate] SchemaExportTask + JBoss

2003-10-28 Thread Giovanni Formenti
Hallo, there is a way to use jboss-service.xml with Ant's "SchemaExportTask"? Now i create a hibernate.cgf.xml file ONLY to use it with this task but to run JBoss+Hibernate it's not necessary! I'd like to don't mantain hibernate.cfg.xml... Any idea? Gio -

Re: [Hibernate] Business Rules

2003-10-28 Thread Christian Bauer
On 28 Oct (12:38), Eric Pugh wrote: > I lean towards not putting that kind of logic in some sort of Manager > object.. I find that when you start mixing busienss logic with data > objects, soon your business logic tier and data tier become all intertwined. Interestingly, thats the reason for a d

RES: [Hibernate] Business Rules

2003-10-28 Thread Miguel Henley
So, do you think that for each persitence class it's a good design decision to create a Manager class ? The Manager class first check the business rules and if it's Ok calls the save / update / delete methods of the session. Is it right ? Miguel. -Mensagem original- De: Christian Baue

Re: RES: [Hibernate] Business Rules

2003-10-28 Thread Christian Bauer
On 28 Oct (10:33), Miguel Henley wrote: > So, do you think that for each persitence class it's a good design decision to > create a Manager class ? The Manager class first check the business rules and if > it's Ok calls the save / update / delete methods of the session. Is it right ? No, this

RE: [Hibernate] Business Rules

2003-10-28 Thread Urberg, John
I see the following two options: 1) Make the constructor on Order private and use a static factory method on Order to first verify the Customer does not have credit restrictions before creating the Order. 2) Make the constructor on Order package level access and add a method to Customer to create

[Hibernate] one-to-one cascading delete

2003-10-28 Thread Trumpickas, Giedrius
Hi, Is there is any way how to get entity state before modifications where made to the entity in transaction ?. For example pseudo code: tx.begin() Entity a = session.load( .. ) now we have entity state E1 from the database assuming that entity is not in cache // modify entity state a.modif

Re: [Hibernate] Re: Re: CGLIB2

2003-10-28 Thread David Morris
Gavin, Is there any possibility of getting the JDBC 3.0 getGeneratedKeys patch applied and into 2.1? I picked up the last round of changes and can build another updated patch for you later this evening if it would help. Thanks, David Morris >>Ah. hm. I am actually ready to release 2.1rc1. J

[Hibernate] what's the best way?

2003-10-28 Thread dosapati
Hi,   I have Entitities A, B, & C.   B should hold an instance of A.   C should hold an instance of A.   If I use one-to-one mapping to A in B & C, will it work? or is there any alternative to achieve the above relations.   Thanks in advance!   dosapati

[Hibernate] ID Generator

2003-10-28 Thread Pragasam, Mukund (Consultant)
ID Generator If you wish to assign this issue/new feature to us, we can develop and contribute to the Hibernate open source. Requirement: 1) Multiple UidGenerator streams (say a stream per table in DB) 2) High performance Requirement - Transaction spanning across public and private network, end

[Hibernate] MySQL/No PK Issue - Cannot Insert

2003-10-28 Thread Algirdas P. Veitas
Hi Folks,   We have a table 'dummy' with no primary key (playing w/ the dealt cards) which upon trying to perform an insert, we get an unexpected error from mysql       java.sql.SQLException: Column not found,  message from server: "Unknown column 'hostName' in 'field list'"   For other table

[Hibernate] Swarmcache, HashtableCacheProvider

2003-10-28 Thread Sandeep Dath
Title: Message Is SwarmCache support active in Beta 4? What about HashtableCacheProvider? Is the use of either of these documented Sandeep

Re: [Hibernate] Re: Re: CGLIB2

2003-10-28 Thread Gavin King
Ummm not sure. It is a fairly complex patch, to core functionality. And I am not yet 100% on accepting it (I'm about 80%). I think we would need to go though a beta5 for this. David Morris wrote: Gavin, Is there any possibility of getting the JDBC 3.0 getGeneratedKeys patch applied and into 2.

Re: [Hibernate] ID Generator

2003-10-28 Thread Gavin King
To implement this requires an id generator with dependencies upon EJB APIs. ie. it requires a session bean. Hibernate does not currently have dependencies upon EJB. This is an appropriate thing to maintain as part of your application. Pragasam, Mukund (Consultant) wrote: ID Generator If you wish

Re: [Hibernate] Re: Re: CGLIB2

2003-10-28 Thread Gavin King
Wouldn't that mean that we would get both versions of CGLIB in our lib directory? Perhaps its better to just wait until Proxool has also upgraded. Perhaps we can put some pressure on them to get up to date. Chris Nokleberg wrote: On Tue, Oct 28, 2003 at 08:03:06PM +1100, Gavin King wrote: