Re: [Hibernate] Transaction options

2005-09-01 Thread Christian Bauer
On Sep 1, 2005, at 10:58 PM, Justen Stepka wrote: This might include a HibernateHelper class similar to Hibernate in Action along with some type of session in view filter. Even if this does not make it into the source code, this clearly is a section that could be added to the documentatio

Re: [Hibernate] Transaction options

2005-09-01 Thread Christian Bauer
On Sep 1, 2005, at 11:21 PM, Christian Bauer wrote: There is no problem without EJBs, it's in fact very trivial three- line code. What I described is a problem _with_ EJBs, container- managed transactions, and a Long Session pattern. And to make this very clear: The problem is a problem of c

Re: [Hibernate] Transaction options

2005-09-01 Thread Christian Bauer
On Sep 1, 2005, at 10:58 PM, Justen Stepka wrote: 1. Long Session and getCurrentSession() doesn't work. Can probably be solved by extending/providing a custom factory that doesn't open/ close on synchronization, but disconnect and reconnect. Users choice since we can't enforce a close() and we

[Hibernate] Transaction options

2005-09-01 Thread Christian Bauer
Two things I realized recently: 1. Long Session and getCurrentSession() doesn't work. Can probably be solved by extending/providing a custom factory that doesn't open/ close on synchronization, but disconnect and reconnect. Users choice since we can't enforce a close() and we should always d

Re: [Hibernate] EJB3NamingStrategy

2005-09-01 Thread Emmanuel Bernard
Yes I did. And I sent a mail on this list :-) There are 2 distinct methods for defaulted columns and explicit columns in the naming strategy. And we don't require that a given method propertyToColumnCoreName() exists such as propertyToColumnName(a) = columnName( propertyToColumnCoreName( a ) )