Re: [hibernate-dev] ORM build - IDE imports

2014-11-10 Thread Gunnar Morling
Hi, 2014-11-08 17:30 GMT+01:00 Steve Ebersole : > I have been thinking of ways to make importing ORM into IDE more > transparent. My thinking is from the IntelliJ pov and the specific issues > I have run into there. I wanted to run my thoughts past y'all to see if > they helped with Eclipse and

[hibernate-dev] Session factory name & clustering

2014-11-10 Thread Galder ZamarreƱo
Hi all, Re: http://stackoverflow.com/questions/26110918/infinispan-marshalling-error-for-hibernate-entity-with-composite-primary-key Re: https://github.com/hibernate/hibernate-orm/pull/820 Seems like the issue is resolved by making sure Session Factories have the same name. Is this something

Re: [hibernate-dev] Session factory name & clustering

2014-11-10 Thread Steve Ebersole
It would depend on what is inside the CacheKey, which is the key object Hibernate passes to the second-level cache. Usually this situation comes up with the identifier Type(s), especially in the case of composite identifiers. Some of the Type implementations hold reference to the SessionFactory.

Re: [hibernate-dev] ORM build - IDE imports

2014-11-10 Thread Steve Ebersole
> > >> Having dirs with generated sources under "target" is a common situation, > so I'm surprised that it isn't handled smoothly by the IntelliJ/Gradle > combo. > > In Eclipse/Maven generated source dirs under "target" are automatically > added as source folder upon import of a Maven project. For

Re: [hibernate-dev] ORM build - IDE imports

2014-11-10 Thread Steve Ebersole
> > > Personally, I am not a big fan of changing build structure for the purpose > of an > IDE. generated-src belong imo into target. > > That said, I know the troubles of having to manually adjust the Idea > configuration > after importing. If it bothers you so much or if you had several reports >

Re: [hibernate-dev] ORM build - IDE imports

2014-11-10 Thread Hardy Ferentschik
Hi, > > > To be honest I think I'd alter jpa-metamodel-gen to not be AP-based as > > the > > > best-case scenario. > > > > Not sure what you mean? Are you referring to the actual annotation > > processor module > > or do you mean that you want to statically check in the generated meta > > model cl

Re: [hibernate-dev] ORM build - IDE imports

2014-11-10 Thread Steve Ebersole
On Mon, Nov 10, 2014 at 7:26 AM, Hardy Ferentschik wrote: > Hi, > > > > > To be honest I think I'd alter jpa-metamodel-gen to not be AP-based > as > > > the > > > > best-case scenario. > > > > > > Not sure what you mean? Are you referring to the actual annotation > > > processor module > > > or d

Re: [hibernate-dev] Session factory name & clustering

2014-11-10 Thread Scott Marlow
On 11/10/2014 07:40 AM, Steve Ebersole wrote: > It would depend on what is inside the CacheKey, which is the key object > Hibernate passes to the second-level cache. Usually this situation > comes up with the identifier Type(s), especially in the case of > composite identifiers. Some of the Type