Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-11 Thread Sanne Grinovero
>> > major release being developed, and the matter of possible time >> > pressure. >> > >> >> Thus the proposal of Yoann and me to just rename the current 6 to a later >> version and release a new major version that only contains the Jakarta >&g

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-11 Thread Yoann Rodiere
Thus the proposal of Yoann and me to just rename the current 6 to a later > version and release a new major version that only contains the Jakarta > package change. > > That way, we don't end up doing additional work and having weird versions > partially supporting both. > >

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Guillaume Smet
ting both. -- Guillaume ___________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Sanne Grinovero
but it will break all existing > > applications in a minor, not ideal > > - move 6 to jakarta packages too to avoid conflicts > > > > 2/ > > - rename 6 to 7 (or 8) > > - release a 6 (or 7) with jakarta packages > > > > I don't think tying the Jakar

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Steve Ebersole
se to the 6 cycle is a good > idea so that's not an option for me. > > Note that in any case, some patches will be significantly harder to > backport to 5.4 (and vice versa). > > -- > Guillaume > _______ > hibernate-dev mailing list >

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Guillaume Smet
kage release to the 6 cycle is a good idea so that's not an option for me. Note that in any case, some patches will be significantly harder to backport to 5.4 (and vice versa). -- Guillaume _______ hibernate-dev mailing list hibernate-dev@lists.jboss.org http

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Yoann Rodiere
ting to > >>> explore a partial migration, for example I suppose it might be > >>> possible for us to "accept" the use of mapping annotations from JPA > >>> 3.0 (on top of the ones from JPA 2.0) while not exposing the full > >>> proper API yet. >

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Christian Beikov
API is literally the same contract, if you except the >>> package name, it might be feasible to expose the full JPA 3.0 in a >>> backwards compatible way as well but this might require: >>>- use of bridge methods, e.g. bytecode manipulation at build time [1] >>>- d

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Sanne Grinovero
(for example) > > Hibernate ORM 5.5.x were to depend on both JPA 2 and JPA 3 API > > artifacts? > > > > And additional change to take into account is that the JPA3 API now > > defines a module-info resource; it would be nice to try taking > > advantage of

Re: [hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Christian Beikov
ge to take into account is that the JPA3 API now > defines a module-info resource; it would be nice to try taking > advantage of that but it's of course more complicated if we have a > hybrid JPA 2/3 implementation. I guess that aspect will have to wait > for ORM6, but also that OR

[hibernate-dev] Jakarta EE: JPA 3.0 is coming

2020-03-10 Thread Sanne Grinovero
g the JPA3 groundwork. Thanks, Sanne 1 - https://github.com/dmlloyd/bridger ___________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Property using field access and has final getter/setter method

2020-03-06 Thread Gail Badner
/f8b78bcad0df43bd9b69fa5ee9d3bf10a3202318 >>> [2] https://hibernate.atlassian.net/browse/HHH-11838 >>> [3] >>> >>> https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/proxy/pojo/ProxyFactoryHelper.java#L87-L94 >>> _______ >>> hibernate-dev mailing list >>> hibernate-dev@lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/hibernate-dev >>> >>> ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Property using field access and has final getter/setter method

2020-03-05 Thread Gail Badner
https://hibernate.atlassian.net/browse/HHH-11838 >> [3] >> >> https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/proxy/pojo/ProxyFactoryHelper.java#L87-L94 >> ____

Re: [hibernate-dev] Custom EventType and listeners

2020-03-05 Thread Gail Badner
eate an HHH jira and create a pull request. >> > >> > Thanks, >> > Gail >> > >> > [1] >> > >> https://github.com/gbadner/hibernate-core/commit/2d368a2ce1da36468ab7f965467711bc59f439cf >> > _______ &g

Re: [hibernate-dev] Custom EventType and listeners

2020-03-05 Thread Steve Ebersole
I will > > create an HHH jira and create a pull request. > > > > Thanks, > > Gail > > > > [1] > > > https://github.com/gbadner/hibernate-core/commit/2d368a2ce1da36468ab7f965467711bc59f439cf > > _______

Re: [hibernate-dev] Property using field access and has final getter/setter method

2020-03-05 Thread Steve Ebersole
] > > https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/proxy/pojo/ProxyFactoryHelper.java#L87-L94 > _______ > hibernate-dev mailing list > hibernate-d

Re: [hibernate-dev] Custom EventType and listeners

2020-03-05 Thread Sanne Grinovero
/commit/2d368a2ce1da36468ab7f965467711bc59f439cf > ___________ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev > _______ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] Custom EventType and listeners

2020-03-04 Thread Gail Badner
know if this is a reasonable improvement. If it is, I will create an HHH jira and create a pull request. Thanks, Gail [1] https://github.com/gbadner/hibernate-core/commit/2d368a2ce1da36468ab7f965467711bc59f439cf ___ hibernate-dev mailing list hibernate-dev

[hibernate-dev] Property using field access and has final getter/setter method

2020-03-04 Thread Gail Badner
/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/proxy/pojo/ProxyFactoryHelper.java#L87-L94 ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Using Panache without Quarkus

2020-02-28 Thread Gunnar Morling
WildFly application? >> >> Any plans to enable that? >> >> Thanks, >> >> --Gunnar >> _______ >> hibernate-dev mailing list >> hibernate-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev >>

Re: [hibernate-dev] Using Panache without Quarkus

2020-02-27 Thread Sanne Grinovero
ut > Quarkus, e.g. within a WildFly application? > > Any plans to enable that? > > Thanks, > > --Gunnar > _______ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://l

[hibernate-dev] Using Panache without Quarkus

2020-02-27 Thread Gunnar Morling
Hi, An interesting question came up during the Quarkus meet-up with Harald Pehl here in Hamburg last night: could Panache also be used without Quarkus, e.g. within a WildFly application? Any plans to enable that? Thanks, --Gunnar ___ hibernate-dev

[hibernate-dev] DB2 support in Hibernate RX

2020-02-27 Thread Sanne Grinovero
://github.com/orgs/eclipse-vertx/projects/1 Andy has been contributing on Quarkus as well: don't hesitate to reach out to him for any need, as I hope he'll be able to help on RX too. Thanks, Sanne ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org

[hibernate-dev] Hibernate Search 6.0.0.Beta5 released

2020-02-24 Thread Yoann Rodiere
8.4, Elasticsearch 7.6 and Hibernate ORM 5.4.12.Final. For more information, see our blog: https://in.relation.to/2020/02/24/hibernate-search-6-0-0-Beta5/ Yoann Rodière Hibernate Team yo...@hibernate.org ___ hibernate-dev mailing list hibernate-dev

Re: [hibernate-dev] PSA: Maven users, upgrade to Maven 3.6.3 if you can

2020-02-21 Thread Sanne Grinovero
nfigured with > Maven 3.6. Jobs configured with Maven 3.5 or below will be affected by the > bug. > > Cheers, > > Yoann Rodière > Hibernate Team > yo...@hibernate.org > ___ > hibernate-dev maili

[hibernate-dev] PSA: Maven users, upgrade to Maven 3.6.3 if you can

2020-02-21 Thread Yoann Rodiere
. The CI already uses Maven 3.6.3 by default for all jobs configured with Maven 3.6. Jobs configured with Maven 3.5 or below will be affected by the bug. Cheers, Yoann Rodière Hibernate Team yo...@hibernate.org ___ hibernate-dev mailing list hibernate

Re: [hibernate-dev] api/doc suggestions

2020-02-20 Thread Sanne Grinovero
SE users having a flat classloader and just needing to run some quick in-memory tests on H2. Thanks > > >> Here again, the ask is so we can educate and point people to use > >> statelessSession rather than dropping Hibernate fully and from that > >> api if needed go d

Re: [hibernate-dev] api/doc suggestions

2020-02-19 Thread Max Rydahl Andersen
o this quickly: > - https://hibernate.atlassian.net/browse/HHH-13861 > > Andrea volunteered to have a look; assigned to him assuming it's > straight forward; if it gets tricky we'll have to wait for Steve's > opinion. > that one is now fixed and that’s awesome. one less deprecation I'm forced to use :) ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] Hibernate Search 5.11.5.Final and 5.10.9.Final released

2020-02-19 Thread Yoann Rodiere
://in.relation.to/2020/02/19/hibernate-search-5-11-5-Final-and-5-10-9-Final/ Cheers, Yoann Rodière Hibernate Team yo...@hibernate.org ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Hibernate ORM : format of the version logged on boot

2020-02-17 Thread Sanne Grinovero
t into: >> >> >INFO [org.hib.Version] HHH000412: Hibernate ORM core version >> >> > 5.4.11-SNAPSHOT >> >> > >> >> > in particular: >> >> > - to remove the "{}" wrapping around the number >> >> > - add "ORM" >>

Re: [hibernate-dev] Hibernate ORM : format of the version logged on boot

2020-02-17 Thread Steve Ebersole
4.11-SNAPSHOT > >> > > >> > in particular: > >> > - to remove the "{}" wrapping around the number > >> > - add "ORM" > >> > - lowercase "core" and add "version" > >> > > >> > Looks good? It w

[hibernate-dev] Release: Hibernate ORM 5.4.12.Final - now with GraalVM metadata!

2020-02-14 Thread Sanne Grinovero
This was an urgent bugfix release, but we managed to include some enhancements as well! Please check out the blog post: https://in.relation.to/2020/02/14/hibernate-orm-5-4-12/ Thanks, Sanne ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org

[hibernate-dev] Starting 5.4.12 release

2020-02-13 Thread andrea boriero
Please do not push anything to master branch. Thanks, Andrea ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Hibernate ORM : format of the version logged on boot

2020-02-13 Thread Sanne Grinovero
] HHH000412: Hibernate ORM core version >> > 5.4.11-SNAPSHOT >> > >> > in particular: >> > - to remove the "{}" wrapping around the number >> > - add "ORM" >> > - lowercase "core" and add "version"

Re: [hibernate-dev] api/doc suggestions

2020-02-12 Thread Sanne Grinovero
t > api if needed go do `.doWork()` rather than refer to deprecated > `.connection()` Makes sense, I believe we should be able to do this quickly: - https://hibernate.atlassian.net/browse/HHH-13861 Andrea volunteered to have a look; assigned to him assuming it's straight forward; if it gets tricky we'll have to wait for Steve's opinion. Thanks! Sanne ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] JDK 14 is now in the Release Candidate Phase

2020-02-10 Thread Rory O'Donnell
rojects/jdk/14/#Schedule [2] https://openjdk.java.net/jeps/3 [3] https://openjdk.java.net/jeps/3#Fix-Request-Process [4] https://mail.openjdk.java.net/pipermail/jdk-dev/2020-February/003885.html -- Rgds, Rory O'Donnell Quality Engineering Manager Oracle EMEA, Dublin, Ireland _______

Re: [hibernate-dev] api/doc suggestions

2020-02-09 Thread Alessio Stalla
eRegistry standardRegistry = new StandardServiceRegistryBuilder().applySettings(settings).build(); MetadataSources sources = new MetadataSources(standardRegistry); sources.add{Class|Package|Jar}(...); //etc. SessionFactory sessionFactory = sources.getMetadataBuilder().build().getSessionFactoryBui

Re: [hibernate-dev] api/doc suggestions

2020-02-09 Thread Dave Cramer
sion the alternative is `doWork`. Any reason why that api isn't > available on stateless session ? > > Here again, the ask is so we can educate and point people to use > statelessSession rather than dropping Hibernate fully and from that > api if needed go do `.doWork()` rather than refer to deprecated > `.connection()` > > Makes sense Dave Cramer > > ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] api/doc suggestions

2020-02-09 Thread Max Rydahl Andersen
api if needed go do `.doWork()` rather than refer to deprecated `.connection()` Thanks, /max https://xam.dk/about ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] Hibernate ORM 5.4.11.Final has been released

2020-02-07 Thread andrea boriero
Hi all, we have released Hibernate ORM 5.4.11.Final ! For details: https://in.relation.to/2020/02/07/hibernate-orm-5411-final-release/ Thanks all!! Andrea ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman

Re: [hibernate-dev] Hibernate ORM : format of the version logged on boot

2020-02-07 Thread Gail Badner
ot;core" and add "version" > > > > Looks good? It would be more consistent with our own project > > naming/branding, and with the format of similar messages being logged > > by other popular libr

[hibernate-dev] Starting 5.4.11 release

2020-02-07 Thread andrea boriero
Please do not push anything to master branch. Thanks, Andrea ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Hibernate ORM : format of the version logged on boot

2020-02-07 Thread Yoann Rodiere
; and add "version" > > Looks good? It would be more consistent with our own project > naming/branding, and with the format of similar messages being logged > by other popular libraries. > > Thanks, > Sanne > ___ > hibern

[hibernate-dev] Hibernate ORM : format of the version logged on boot

2020-02-07 Thread Sanne Grinovero
other popular libraries. Thanks, Sanne ___________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] Hibernate Search 6.0.0.Beta4 released

2020-01-24 Thread Yoann Rodiere
-search-6-0-0-Beta4/ Yoann Rodière Hibernate Team yo...@hibernate.org ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] Hibernate ORM 5.3.15.Final has been released!

2020-01-23 Thread Gail Badner
It was actually released 07/Jan/2020. Apologies for the late announcement! https://in.relation.to/2020/01/23/hibernate-orm-5315-final-out/ ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] Hibernate Validator 6.1.1.Final released

2020-01-23 Thread Guillaume Smet
here: https://in.relation.to/2020/01/23/hibernate-validator-6-1-1-released/ . Have a nice day. -- Guillaume ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] JDK 14 is now in Rampdown Phase Two

2020-01-17 Thread Rory O'Donnell
020-January/005274.html -- Rgds, Rory O'Donnell Quality Engineering Manager Oracle EMEA, Dublin, Ireland _______ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Bidirectional one-to-one, both sides are owners, using @PrimaryKeyJoinColumn

2020-01-16 Thread Gail Badner
private Employee employee; > ... > } > > In this particular case, the foreign keys have been deleted, so it's > possible to load and delete these entities. > > An attempt to insert an entity on either side results in: > org.hibernate.PropertyValueException: not-null property

Re: [hibernate-dev] Bidirectional one-to-one, both sides are owners, using @PrimaryKeyJoinColumn

2020-01-15 Thread Jan-Willem Gmelig Meyling
xception: cyclic dependency in derived identities Please let me know... Thanks, Gail ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org<mailto:hibernate-dev@lists.jboss.org> https://lists.jboss.org/mailman/listinfo/hibernate-dev __

[hibernate-dev] Bidirectional one-to-one, both sides are owners, using @PrimaryKeyJoinColumn

2020-01-14 Thread Gail Badner
ts in: org.hibernate.PropertyValueException: not-null property references a null or transient value When converted to use @MapsId and @JoinColumns instead, Hibernate throws: org.hibernate.MappingException: cyclic dependency in derived identities Please let me know... Thanks, Gail ____

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-13 Thread Yoann Rodiere
t; `#setObject` methods (`#getObject` as well?). Does the driver handle >>> this. >>> > >>> > Out of curiosity, which jdbc driver are you helping with? >>> > >>> > >>> > >>> > On Thu, Jan 9, 2020 at 10:23 AM Dave Cramer >&

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-13 Thread Dave Cramer
t;> > >> > >> > >> > On Thu, Jan 9, 2020 at 10:23 AM Dave Cramer >> wrote: >> > >> >> Hi, >> >> >> >> As one of the maintainers of the postgres jdbc driver I am interested >> in >> >> this disc

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-13 Thread Yoann Rodiere
gres jdbc driver I am interested in > >> this discussion. > >> Postgres only stores date/times in UTC. Everything else is a > translation. > >> The driver uses the client's timezone for all dates/times (for better or > >> worse) If there is anything I can do to

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-13 Thread Dave Cramer
se is a translation. >> The driver uses the client's timezone for all dates/times (for better or >> worse) If there is anything I can do to help make things easier, let me >> know. >> >> >> >> -- >> Sent from: http://hibernate-development.74578.x6.nabbl

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-12 Thread Steve Ebersole
know. > > > > -- > Sent from: http://hibernate-development.74578.x6.nabble.com/ > _______ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev > > _____

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-12 Thread Steve Ebersole
If I ask Java to parse >>> "2020-01-01 10:10:10 America/Chicago +02:00" it just says no. For me, CST >>> (standard) and CDT (daylight savings) are really synonyms for offset - >>> either UTC-05:00 or UTC-06:00 depending on day of the year. >>> &

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-09 Thread Dave Cramer
easier, let me know. -- Sent from: http://hibernate-development.74578.x6.nabble.com/ ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-09 Thread Christian Beikov
kPachot/postgresql-bind-variable-peeking-fb4be4942252 > > [3] > > https://blog.jooq.org/2018/04/12/why-sql-bind-variables-are-important-for-performance/ > > [4] > > https://blog.jooq.org/2017/05/30/when-to-use-bind-values-and-when-to-use-inline-values-in-sql/ > ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-09 Thread Steve Ebersole
t; https://medium.com/@FranckPachot/postgresql-bind-variable-peeking-fb4be4942252 > > [3] > https://blog.jooq.org/2018/04/12/why-sql-bind-variables-are-important-for-performance/ > > [4] > https://blog.jooq.org/2017/05/30/when-to-use-bind-values-and-when-to-use-inline-values-in-sql/ > ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Christian Beikov
when-to-use-bind-values-and-when-to-use-inline-values-in-sql/ ___________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Steve Ebersole
o disagree that query literals should always be rendered as SQL literals. ___________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Christian Beikov
ase optimizer can build a "better" plan > using a literal versus a parameter is generally pretty small. I > can think of partition columns, tenancy columns - things of that > nature.  You think its more broad? > If the selectivity estimates for a parameter are low, and in bi

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Steve Ebersole
m such injection attacks. 2. The cases where the database optimizer can build a "better" plan using a literal versus a parameter is generally pretty small. I can think of partition columns, tenancy columns - things of that nature. You think its more broad? _______ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Christian Beikov
think that is > enough. Conceptually that is what "JDBC time zone" is supposed to mean > exactly what we are discussing here, right? > Right _______ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Steve Ebersole
what "JDBC time zone" is supposed to mean exactly what we are discussing here, right? _______________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Steve Ebersole
uot;parsing it" and (2) applying it to SQL. Different parts > of > > > the puzzle. > > > > > > Yep. > > > > > > Yoann Rodière > > > Hibernate Team > > > yo...@hibernate.org > > > > > > > > > On T

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Steve Ebersole
ain, this topic is about HQL parsing. Yes, handling temporal values at the JDBC/SQL level can be very tricky. That's true however whether that temporal value is an HQL literal or an attribute value. And its just a completely different topic overall. > ___________

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Christian Beikov
2020 at 19:50, Steve Ebersole <mailto:st...@hibernate.org>> wrote: > > > > > As far as I know, even Java does not support that. A true > zone-id would > > >> be something like (for me) "America/Chicago". If I ask Java > to parse &

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Yoann Rodiere
true zone-id > would > > >> be something like (for me) "America/Chicago". If I ask Java to parse > > >> "2020-01-01 10:10:10 America/Chicago +02:00" it just says no. For me, > > CST > > >> (stand

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Christian Beikov
CST > >> (standard) and CDT (daylight savings) are really synonyms for offset - > >> either UTC-05:00 or UTC-06:00 depending on day of the year. > >> > > > > It seems like the proper syntax for that would actually be "2020-0

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-08 Thread Yoann Rodiere
cago", but in my > testing DateTimeFormatter#parseBest did not handle that form either > > ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-07 Thread Steve Ebersole
Formatter#parseBest did not handle that form either _______________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-07 Thread Steve Ebersole
support for various temporal-related things such as how to >> handle formatting (to_char, etc), extraction and temporal arithmetic - >> specifically formalizing and normalizing them across databases. >> > > Nice. As long as it uses org.hibernate.type.Type implementations when i

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-07 Thread Yoann Rodiere
izing and normalizing them across databases. > Nice. As long as it uses org.hibernate.type.Type implementations when it comes to converting between Java values and SQL values, it should be safe. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-07 Thread Steve Ebersole
o_char, etc), extraction and temporal arithmetic - specifically formalizing and normalizing them across databases. _______ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] 6.0 - HQL literals

2020-01-06 Thread Yoann Rodiere
s or suggestions regarding any of this? > > > [1] - > > https://github.com/hibernate/hibernate-orm/blob/eab6107ec2e7b3a0c06146a9ff51b9964f4b3169/hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4#L484 > _______ > hibernate

[hibernate-dev] 6.0 - HQL literals

2020-01-06 Thread Steve Ebersole
ate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4#L484 _______________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] JDK 14 Early Access build 30 & JDK 15 Early Access build 4 are available.

2020-01-06 Thread Rory O'Donnell
[1] https://mail.openjdk.java.net/pipermail/jdk-dev/2019-December/003795.html -- Rgds, Rory O'Donnell Quality Engineering Manager Oracle EMEA, Dublin, Ireland ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-19 Thread Gail Badner
t; >>> >>>> >>>> We have been trying to keep a balance of maintainable code base for >>>> >>>> Hibernate vs legacy/counter intuitive/plain wrong DB designs. The >>>> answer is >>>> &

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-18 Thread Steve Ebersole
gt;> >>>> >>> >>>> As an example you might Imagine someone wants to put >>> >>>> internationalization properties into a database and having a table >>> >>>> structure like this (this might be an old legacy application that >>> doesn't >>> >>>&g

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-18 Thread Gail Badner
ALE as , as in this case the systems >> >>>> default locale would be used, but for each BUNDLE_NAME/KEY >> combination you >> >>>> could only have a single composite key with a LOCALE. >> >>>> >> >>>> Hibernate should be (must be?) able to handle this scenario,

[hibernate-dev] Google Spanner support for Hibernate ORM

2019-12-18 Thread Sanne Grinovero
in his role as Developer Advocate at Google Cloud Platform, and a Java Champion too. Also if you don't mind, advertise it on twitter: - https://twitter.com/Hibernate/status/1207321287623954432 Thanks, Sanne ___ hibernate-dev mailing list hibernate-dev

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-17 Thread Gail Badner
nate allows null to > be > >>>>> a valid id value. Because null means I don't know or not applicable. > >>>>> I think in the past we argued the same for attributes of a composite > >>>>> id, > >>>>> like you s

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-17 Thread Jan-Willem Gmelig Meyling
gt;>>> Emmanuel >>>>> >>>>> On 11 Dec 2019, at 3:37, Gail Badner wrote: >>>>> >>>>>> Currently, there is no way to load an entity that exists in the >>>>>> database >>>>>> with a composite ID, if one of the composite ID columns is null. >>>>&g

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-16 Thread Gail Badner
ibernate/type/ComponentType.java#L671-L675 >>>> > >>>> > Basically, if any field/property in a composite ID is null, Hibernate >>>> > assumes the entire ID is null. An entity cannot have a null ID, so it >>>> > returns null for the entity result. >>>> > >>>> > I believ

[hibernate-dev] Hibernate Search 6.0.0.Beta3 released

2019-12-16 Thread Yoann Rodiere
, Elasticsearch 7.5 and Hibernate ORM 5.4.10.Final. For more information, see our blog: https://in.relation.to/2019/12/16/hibernate-search-6-0-0-Beta3/ Yoann Rodière Hibernate Team yo...@hibernate.org ___ hibernate-dev mailing list hibernate-dev

[hibernate-dev] JDK 14 enters Rampdown Phase One

2019-12-14 Thread Rory O'Donnell
v/2019-December/003795.html -- Rgds, Rory O'Donnell Quality Engineering Manager Oracle EMEA, Dublin, Ireland ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-12 Thread Gail Badner
Hibernate does allow a primary key column to be >>> > nullable. >>> > >>> > TBH, it seems strange to have a property in a composite ID that can be >>> > null. If it can be null, it seems that the property could be removed >>> > from >>> > the composite key. >>> > &g

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-11 Thread Emmanuel Bernard
-L675 >>>> >>>> Basically, if any field/property in a composite ID is null, >>>> Hibernate >>>> assumes the entire ID is null. An entity cannot have a null ID, so >>>> it >>>> returns null for the entity result. >>>>

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-11 Thread Joerg Baesner
does allow a primary key column to be >> > nullable. >> > >> > TBH, it seems strange to have a property in a composite ID that can be >> > null. If it can be null, it seems that the property could be removed >> > from >> > the composite key. &g

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-11 Thread Emmanuel Bernard
a primary key column to be >>> nullable. >>> >>> TBH, it seems strange to have a property in a composite ID that can >>> be >>> null. If it can be null, it seems that the property could be removed >>> from >>> the composite key. >>

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-11 Thread Joerg Baesner
gt; > fields/properties must be non-null. Am I missing something? > > > > The code I referenced above is 13 years old. Does anyone have insight > > into > > why Hibernate does this? > > > > Thanks, > > Gail > > _____

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-11 Thread Emmanuel Bernard
see anything in the spec about a requirement that all > composite ID > fields/properties must be non-null. Am I missing something? > > The code I referenced above is 13 years old. Does anyone have insight > into > why Hibernate does this? > > Thanks, > Gail >

[hibernate-dev] Composite IDs with a null property/field

2019-12-10 Thread Gail Badner
referenced above is 13 years old. Does anyone have insight into why Hibernate does this? Thanks, Gail ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] IdClass superclasses

2019-12-10 Thread Gail Badner
gt;>> properties have been detected, and throw an exception if this is not the >>> case. >>> >>> 2) A class used as an IdClass does not need any annotations (as opposed >>> to >>> a class used for an EmbeddedId class, which requires {{@Embeddable}}).

Re: [hibernate-dev] IdClass superclasses

2019-12-10 Thread Steve Ebersole
superclass would need to be annotated with >> {{@MappedSuperclass}} in order for its fields/properties to be persistent. >> Since the field/property names must match what is annotated in an IdClass, >> it is clear that the field/property in a superclass is intended to be an >> ID. Perhaps we could make annotating the superclass with >> {{@MappedSuperclass}} optional? >> >> Opinions? >> >> Thanks, >> Gail >> ___ >> hibernate-dev mailing list >> hibernate-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> >> ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] IdClass superclasses

2019-12-10 Thread Steve Ebersole
lass, > it is clear that the field/property in a superclass is intended to be an > ID. Perhaps we could make annotating the superclass with > {{@MappedSuperclass}} optional? > > Opinions? > > Thanks, > Gail > _______ > hibernate-de

[hibernate-dev] IdClass superclasses

2019-12-09 Thread Gail Badner
t is clear that the field/property in a superclass is intended to be an ID. Perhaps we could make annotating the superclass with {{@MappedSuperclass}} optional? Opinions? Thanks, Gail ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists

Re: [hibernate-dev] Cache key containing composite ID with a many-to-one

2019-12-05 Thread Gail Badner
, > ... > }; > assert idValues.length %2 == 0; > session.get( EntityWithCompositeId.class, idValues ); > > Of course, if the embedded-id could also have an id-class you'd use that. > > I'd like to see all of these as options btw, not one-or-the-other. > Though I'm fine if no-one else likes the `Session#byCompositeId` idea. > It was just a spur-of-the-moment idea. > ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

<    1   2   3   4   5   6   7   8   9   10   >