[hibernate-dev] ORM - location of generated sources

2015-07-19 Thread Gunnar Morling
Hi, The build for hibernate-core generates sources using Antlr which end up in target/generated-src/antlr/main, e.g. GeneratedOrderByFragmentParser.java. The weird thing is that the generated files are located right within this directory, i.e. there is *no* directory hierarchy resembling the pac

Re: [hibernate-dev] Naming strategies and collection element columns

2015-07-19 Thread Gunnar Morling
Steve, any ideas regarding the invocation of determineBasicColumnName() for collection elements? Thanks, --Gunnar 2015-07-17 16:46 GMT+02:00 Gunnar Morling : > Turns out our ImplicitNamingStrategy's determineBasicColumnName() is > invoked twice at different places within Ejb3Column. Once the m

Re: [hibernate-dev] Enum mapping in hbm.xml

2015-07-19 Thread Steve Ebersole
I should have mentioned... There is also this "type" parameter that EnumType accepts. I'd also look at that in terms of deciding defaults. It accepts JDBC type codes. EnumType already knows which type codes constitute ordinal types and named types. So in psuedo code what I am proposing is: if

[hibernate-dev] Enum mapping in hbm.xml

2015-07-19 Thread Steve Ebersole
This came up in getting the testsuite set up against MySQL. When an enum is defined in hbm.xml we do not inherently know whether to treat it as ordinal or named. We try a few different things to make this determination, but ultimately if we do not have enough information up front we prefer to def