Re: [hibernate-dev] Build and AnnotationProcessors

2013-04-17 Thread Eric Dalquist
Just to chime in on the IDE use. While hibernate is on the significantly complex side of things for OSS projects go most projects I deal with that are using Maven or Gradle I do just checkout in my IDE and expect to work. For 99% of maven projects this is the case, I checkout/clone the project, im

Re: [hibernate-dev] SchemaManagementTool / Exportable

2012-08-09 Thread Eric Dalquist
+1 for the externalization. We actually have a custom schema-export tool for hibernate 4.1 that plugs in with how we configure data sources in spring much better than the provided tool. -Eric On 08/09/2012 11:38 AM, Steve Ebersole wrote: > The basics of org.hibernate.service.schema.spi.SchemaMa

Re: [hibernate-dev] mocking library for hibernate unit tests?

2012-08-01 Thread Eric Dalquist
re (going through whole Session life > cycles). We have often discussed that we need more actual unit tests. If you > want to use a mocking framework to do this I don't see why you should not be > able to use one. > > --hardy > > > > On 1 Aug 2012, at 06:02, Eric Dal

[hibernate-dev] mocking library for hibernate unit tests?

2012-07-31 Thread Eric Dalquist
I'm working on a fix for https://hibernate.onjira.com/browse/HHH-7468 but I want to write a test first to reproduce the problem. Any recommendations for mocking an EntityPersister and a SessionImplementor in the hibernate (4.1 branch) project? I didn't see something like mockito or easymock on

Re: [hibernate-dev] Memory consumption

2012-05-16 Thread Eric Dalquist
One option we use on our uPortal installs is to enable -XX:+UseCompressedStrings It requires a bit more CPU but we are generally memory bound and not CPU bound. The description reads "Use a byte[] for Strings which can be represented as pure ASCII. (Introduced in Java 6 Update 21 Performance R

Re: [hibernate-dev] Hibernate Developer IRC meeting - 5/03

2012-05-04 Thread Eric Dalquist
Next time I grab a heap dump from one of our prod boxes I can poke around in the org.hibernate classes a bit and let you know what YourKit says if you guys want :) -Eric On 5/4/12 7:14 AM, Steve Ebersole wrote: > Apparently this did not go through to the list the first time, sorry... > > Comple

Re: [hibernate-dev] Adding features to Dialect class

2012-04-30 Thread Eric Dalquist
Could this be a common enough issue that Hibernate includes a work-around type so that everyone doesn't have to write their own? We've had to address this wonderful Oracle "feature" via a custom user type as well, ours is based on http://usertype.sourceforge.net/ and the NullSafeStringType and

[hibernate-dev] NaturalIdXrefDelegate key comparison issue

2012-03-10 Thread Eric Dalquist
I haven't spent a ton of time looking into this yet but while trying to update uPortal to use naturalIds in 4.1.1 I think I ran into a bug in: NaturalIdXrefDelegate$NaturalIdResolutionCache.areSame(Object[], Object[]) That code uses Type.compare(Object x, Object y) to compare each pair of field

Re: [hibernate-dev] natural-id to primary key cache

2012-03-06 Thread Eric Dalquist
This has been completed and made it into the 4.1 release. There are two parts, a persistence context level cache of PK->NaturalId and NaturalId->PK and a new NaturalIdCacheRegion was added to the caching SPI. The Ehcache provider that ships with Hibernate was updated to support the new region a

Re: [hibernate-dev] Pull requests for JIRA issues related to NaturalIdLoadAccess

2012-02-29 Thread Eric Dalquist
Sunday but I'll see if I can get both of those addressed first thing on Monday unless someone else gets to them first. -Eric On 2/29/12 6:37 PM, Gail Badner wrote: > I noticed that Eric Dalquist created some pull requests for JIRA issues > related to NaturalIdLoadAccess. These iss

Re: [hibernate-dev] Proxies and typing

2012-01-26 Thread Eric Dalquist
Perhaps an overloaded method for those that want generics and proxies? public T load(Class entityType, Class proxyType, ...) It is kinda gross and results in higher level code knowing about the proxies but it would work for those people that are using proxyClass without having to make lower

Re: [hibernate-dev] mutable versus immutable natural keys

2012-01-26 Thread Eric Dalquist
After our conversion in IRC I think the latest iteration of the idea having the following would suffice: public @interface NaturalId { /** * If the NaturalId can change, either via the application or direct database manipulation */ boolean mutable() default fals

[hibernate-dev] Test

2012-01-26 Thread Eric Dalquist
Sorry for the spam, having subscription problems. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev