[Hibernate] Caching of collections

2005-05-08 Thread Emmanuel Bernard
I noticed that we don't put the collection in cache when creating an object
ie
item.addDistributors( new HashSet() );
session.persist(item);
item will be in put in cache, but not item.distributors.
Any reason for not doing that?


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Hibernate 3.0.3

2005-05-08 Thread Christian Bauer
This release includes better alignment with EJB3 fetching behavior,  
new JDBC handling options, various bugfixes, and a new tutorial.


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] HBX-81: Patch for cascade=all-delete-orphan in Annotations

2005-05-08 Thread Pablo Nussembaum
Hello,
I made a more general (mapping all the missing cascade types from
Hibernate) patch and a post it here:

http://opensource.atlassian.com/projects/hibernate/browse/HBX-203

Pablo Nussembaum

Emmanuel Bernard wrote:

> Sorry for the delay, answered in the JIRA issue.
>
> Pablo Nussembaum wrote:
>
>> Hello,
>> I made a patch to make avalaible the cascade=all-delete-orphan in
>> Annotations.
>> I attach the patch in the jira bug:
>> http://opensource.atlassian.com/projects/hibernate/browse/HBX-81
>>
>> The patch is a proposal for the solution, I don't know if is the best
>> way to solve it, I wait for yours comments.
>>
>> Thanks!
>>
>> -- 
>> Pablo Nussembaum
>> refert
>>
>>
>>
>>
>>
>> ---
>> This SF.Net email is sponsored by: NEC IT Guy Games.
>> Get your fingers limbered up and give it your best shot. 4 great
>> events, 4
>> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
>> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
>> ___
>> hibernate-devel mailing list
>> hibernate-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>>
>>
>>  
>>
>
>
>
>
>
> ---
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great
> events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> ___
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel




---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] What should hbm2java do in this case ?

2005-05-08 Thread Max Rydahl Andersen
Hi guys,
Take a look at  
http://opensource.atlassian.com/projects/hibernate/browse/HBX-258
where a user has mapped the primary key as an "int".

In the "old" hbm2java we always used the wrapper type for primary keys.
In the new one we made it a bit stricter/simpler since we now look at  
not-null
 - and if its true then we generate a primitive property. And since primary
keys is always not-null then he will get int instead of Integer.

With the new magic unsaved-value detection in hibernate3 is there any  
reason
why using a primitive shouldnt be preferred ?
(the user reported that hibernate complained about having duplicate  
objects with
id 0 - is that expected ?)

Or should I make hbm2java so it will generate wrapper types for primary  
keys
be default ?

-max

---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel