Re: [hibernate-dev] Metamodel tests

2012-07-31 Thread Gail Badner
Strong mentioned that was fixed by HHH-7472, so I resolved HHH-6566 as a duplicate. - Original Message - > From: "Strong Liu" > To: "Gail Badner" > Cc: "Steve Ebersole" , "Hibernate hibernate-dev" > > Sent: Monday, July 30, 2012 10:32:35 PM > Subject: Re: [hibernate-dev] Metamodel tes

[hibernate-dev] Fwd: Building hibernate from hibernate source code

2012-07-31 Thread mutaz kabbashi
hi i am trying to build hibernate from hibernate source code as you explained here but i couldn't when i issue gradlew clean build -x test the following exception appered * What went wrong: Execution failed for task ':hibernate-entitymanager:compileJava'. > Compile failed; see the compiler erro

Re: [hibernate-dev] Building hibernate from hibernate source code

2012-07-31 Thread Hardy Ferentschik
On 31 Jan 2012, at 2:56 PM, mutaz kabbashi wrote: > i am trying to build hibernate from hibernate source code as you > explained here but i couldn't I assume you mean https://community.jboss.org/wiki/BuildingHibernateORM4x For all I can tell this works just fine. --Hardy _

Re: [hibernate-dev] integrate Envers with new metamodel

2012-07-31 Thread Sanne Grinovero
Both Hibernate Search and Hibernate OGM will need to look for custom annotations as well. On 30 July 2012 22:59, Strong Liu wrote: > https://hibernate.onjira.com/browse/HHH-7490 > > the problem is, envers needs to index its own annotations ( @Audited for > example ), but the current Integrator

Re: [hibernate-dev] integrate Envers with new metamodel

2012-07-31 Thread Strong Liu
maybe we should move the annotation indexing from org.hibernate.metamodel.internal.source.annotations.AnnotationMetadataSourceProcessorImpl#AnnotationMetadataSourceProcessorImpl into MetadataSources ( for hbm, it can be get by org.hibernate.metamodel.MetadataSources#getJaxbRootList) and add a n

Re: [hibernate-dev] integrate Envers with new metamodel

2012-07-31 Thread Sanne Grinovero
Why is the "annotation indexing" discussion part of the metamodel? I initially understood that a replacement of commons-annotations was being developed, which would be nice for Search too as Search does not and should not depend on Hibernate ORM. Cheers, Sanne On 31 July 2012 23:49, Strong Liu w

Re: [hibernate-dev] integrate Envers with new metamodel

2012-07-31 Thread Strong Liu
that part is developed to replace commons-annotations, but it is not designed as a separated module, but part of hibernate-orm. because of using Jandex, this code is much simpler now, so there is no need to do that. for modules like h-search which doesn't depend on ORM, maybe it should move to

Re: [hibernate-dev] Building hibernate from hibernate source code

2012-07-31 Thread Strong Liu
you need to use JDK 7 now to build master branch. On Jul 31, 2012, at 9:06 PM, Hardy Ferentschik wrote: > > On 31 Jan 2012, at 2:56 PM, mutaz kabbashi wrote: > >> i am trying to build hibernate from hibernate source code as you >> explained here but i couldn't > > I assume you mean https://c

[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] mocking library for hibernate unit tests?

2012-07-31 Thread Hardy Ferentschik
Hi Eric, None of the existing tests uses a mock framework. In fact a great part of our test cases are functional in nature (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 yo