Re: [hibernate-dev] Link to test case templates

2015-10-30 Thread Mihalcea Vlad
Thanks guys for taking this into consideration. I've seen those negative tweets lately, regarding the JIRA issues and maybe helping people provide more focused unit-tests is for the best.We could integrate those easily into Hibernate main test suite and we can address them more rapidly too. I ne

Re: [hibernate-dev] Apache Trafodion Dialect

2015-10-26 Thread Mihalcea Vlad
That's indeed interesting. It is like a RDBMS that uses Hadoop as the underlying storage engine.I see that others have managed to run the TPC-C suite against Trafodion too: http://hammerora.sourceforge.net/hammerdb_trafodion_oltp.pdf I think this could be a good opportunity for Hibernate to appr

Re: [hibernate-dev] Speaking to Atlanta JUG mid Nov about Hibernate v5

2015-10-21 Thread Mihalcea Vlad
That's a good idea. After I'm done with the first part of my book, I'll review all 5.0 changes and collect them all in one presentation for our local JUG too. Vlad  On Wednesday, October 21, 2015 4:35 PM, Sanne Grinovero wrote: Remind me of this when we meet next week! Happy to wa

[hibernate-dev] Persistence.xml properties are not available when the Hibernate services are bootstrapped

2015-06-08 Thread Mihalcea Vlad
Hi Steven, I'm trying to integrate FlexyPool ( https://github.com/vladmihalcea/flexy-pool ) with Java EE Application servers, and the only work-around I found is to add a new Hibernate ConnectionProvider that extends the DataSourceConnectionProvider and exposes a DataSource proxy, instead of the

[hibernate-dev] Hibernate Metrics support

2015-06-01 Thread Mihalcea Vlad
Hi Steve, I was thinking of having a Metrics gathering API for all sorts of database-related operations: - connection acquiring/lease time- connection wait time- transaction durations- SQL query logger - slow queries threshold- number of queries per transaction threshold Something similar to htt

Re: [hibernate-dev] Hibernate ORM - next steps

2015-05-29 Thread Mihalcea Vlad
From a performance perspective, I'm glad we'll be able to override the EAGER fetching on a query-basis. We could have an UNFETCH directive to do the opposite of the current FETCH one. The bytecode enhancement dirty-checking is also a plus.  Vlad On Friday, May 29, 2015 11:09 AM, Emmanue

Re: [hibernate-dev] NonStrictReadWriteEhcacheEntityRegionAccessStrategy removes the region Cache key twice

2015-05-05 Thread Mihalcea Vlad
Vlad Mihalcea  On Tuesday, May 5, 2015 1:52 PM, Mihalcea Vlad wrote: Hi, When an entity is updated for the "CacheConcurrencyStrategy.NONSTRICT_READ_WRITE", the cache entry is removed twice: 1. Once from update:public boolean update(Object key, Object value, Object currentVersio

[hibernate-dev] NonStrictReadWriteEhcacheEntityRegionAccessStrategy removes the region Cache key twice

2015-05-05 Thread Mihalcea Vlad
Hi, When an entity is updated for the "CacheConcurrencyStrategy.NONSTRICT_READ_WRITE", the cache entry is removed twice: 1. Once from update:public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { remove( key ); return fa

[hibernate-dev] Immutable entities read-only caching improvement proposal

2015-05-05 Thread Mihalcea Vlad
Hi guys, Taking this comment as a starting point http://vladmihalcea.com/2015/04/27/how-does-hibernate-read_only-cacheconcurrencystrategy-work/comment-page-1/#comment-3404 To reduce cache entities hydration, we could simply use the: "hibernate.cache.use_reference_entries" setting, but that's too

Re: [hibernate-dev] Any change of adding generics to Hibernate specific API

2015-04-30 Thread Mihalcea Vlad
Hibernate native) is historically non typed, I > >> wonder if that is worth introducing these new typed version and add more > >> overloaded methods on Session. > >> Do you think it is worth the additional complexity? > >> > >> Steve, do you have some

[hibernate-dev] hibernate.cache.default_cache_concurrency_strategy has no effect

2015-04-29 Thread Mihalcea Vlad
Hi, Setting the "hibernate.cache.default_cache_concurrency_strategy" property doesn't have any effect. This setting is inspected in AnnotationBinder.prepareDefaultCacheConcurrencyStrategy method, but thatmethod is never called. Here's a test to replicate the issue: https://github.com/vladmihalc

[hibernate-dev] Any change of adding generics to Hibernate specific API

2015-04-15 Thread Mihalcea Vlad
Hi, Although many rely on the Java Persistence API, Hibernate still offers specific features, like mapping a native SQLQuery result set to a DTO: .setResultTransformer(Transformers.aliasToBean(DTO.class)); Is it possible to add TypedQuery and TypedSQLQuery, analogous to the JPA specs, so you can

[hibernate-dev] Support for DELETE statements ActionQueue sorting

2015-03-25 Thread Mihalcea Vlad
Hi, While INSERT sorting is handled by ActionQueue.InsertActionSorter, DELETE statements are not sorted at all. A DeleteActionSorter woudl have to rearrange DELETES in the opposite order as the INSERT sorting, the Children having to be deleted first. The current work-around is to dissociate all C

[hibernate-dev] DefaultLockEventListener cascading

2015-03-09 Thread Mihalcea Vlad
Hi, While investigating how Lock Cascading works, I realized that the lock "scope" is only applied for detached entities. Object entity = source.getPersistenceContext().unproxyAndReassociate( event.getObject() ); //TODO: if object was an uninitialized proxy, this is inefficient, // resulting

[hibernate-dev] JPA PessimisticLockScope.EXTENDED specs are not properly implemented

2015-02-27 Thread Mihalcea Vlad
Hi, According to JPA specification, when using PessimisticLockScope.EXTENDED: In addition to the behavior for PessimisticLockScope.NORMAL, element collections and relationships owned by the entity that are contained in join tables will be locked if the javax.persistence.lock.scope property