Re: [hibernate-dev] EntityManagetFactory unwrap - HHH-9665

2015-04-28 Thread Sanne Grinovero
I don't feel the need to be over protective on what the user can do. Some people know what they are doing, everyone else should stay away from "unwrap". Sanne On 24 April 2015 at 21:00, Hardy Ferentschik wrote: > On Fri, Apr 24, 2015 at 02:20:55PM -0500, Steve Ebersole wrote: >> Also I wanted to

[hibernate-dev] [OGM] Sprint organisation meeting

2015-04-28 Thread Emmanuel Bernard
We did discuss the next 3 weeks of work: ORM 5 compatibility for OGM and Search in alpha stage More query User feedback around MongoDB Cassandra … Emmanuel to send the ordered list of issues to work on soon. Meeting ended Tue Apr 28 14:26:46 2015 UTC. Minutes: http://transcripts.jboss.or

Re: [hibernate-dev] org.hibernate.cfg.Settings deprecated

2015-04-28 Thread Steve Ebersole
Har On Tue, Apr 21, 2015 at 1:52 PM, Hardy Ferentschik wrote: > On Tue, Apr 21, 2015 at 01:09:53PM -0500, Steve Ebersole wrote: > > Ok, silence will be taken as a vote to do whatever I feel is best > > regardless of impact on these integration impls... So anyone? > > Sorry, I forgot about this

Re: [hibernate-dev] org.hibernate.cfg.Settings deprecated

2015-04-28 Thread Steve Ebersole
Hardy, Settings still has that method. I also had to expose that from SessionFactoryOptions, and Settings delegates to that. Long term, I am not sure. Obviously I dislike the setters here. Maybe a good case for adding a SessionFactoryBuilderInitializer (along the lines of MetadataBuilderInitia

Re: [hibernate-dev] Quick question about PostCommitInsertEventListener

2015-04-28 Thread Emmanuel Bernard
Hi, I think a post-commit-insert event listener would be the best for you from what I have looked at. Emmanuel > On 27 Apr 2015, at 21:38, Haswell, Josiah D wrote: > > Hi folks, > > > In Datomic, when you create an entity, you must give the entity a temporary > ID before you insert it. Af

Re: [hibernate-dev] org.hibernate.cfg.Settings deprecated

2015-04-28 Thread Emmanuel Bernard
> On 21 Apr 2015, at 20:52, Hardy Ferentschik wrote: > > My guess > is that when this option is enabled and Bean Valdation's @NotNull > is used as well, the ORM validation kicks in first and throws some ORM > specific exception > instead of the ConstraintViolationException one would expect in

Re: [hibernate-dev] Datomic OGM implementation

2015-04-28 Thread Emmanuel Bernard
Nice :) Also there is a bit of paperwork, can you: - create a jboss.org user account - log in - go to cla.jboss.org and accept the Hibernate contributor agreement This is very similar to the Apache CLA which makes sure that your code is really from you and not someone else’s. Ping me when you ha

[hibernate-dev] Changes around transaction -> changed exception behavior

2015-04-28 Thread Gunnar Morling
Hi, while working on making OGM work with ORM 5, I noticed a slightly different behaviour wrt. to exceptions occurring during flushes. Previously, such exceptions would bubble up as is, whereas now the beforeTransactionCompletion() logic is called in a try/catch block, wrapping any exceptions in

Re: [hibernate-dev] Changes around transaction -> changed exception behavior

2015-04-28 Thread Steve Ebersole
Where does that wrapping happen? On Tue, Apr 28, 2015 at 3:53 PM, Gunnar Morling wrote: > Hi, > > while working on making OGM work with ORM 5, I noticed a slightly different > behaviour wrt. to exceptions occurring during flushes. > > Previously, such exceptions would bubble up as is, whereas n

Re: [hibernate-dev] Changes around transaction -> changed exception behavior

2015-04-28 Thread Gunnar Morling
TransactionImpl#commit(); The before-completion code is now invoked through transactionDriverControl.commit(); whereas previously this happened out of a try/catch block. 2015-04-28 23:26 GMT+02:00 Steve Ebersole : > Where does that wrapping happen? > > On Tue, Apr 28, 2015 at 3:53 PM, Gunnar Morl