[hibernate-dev] Re: HHH-6221 foreign keys with shared columns

2020-12-20 Thread Jason Pyeron
that the mitigation below requires manual re-setting of the ManyToOne properties after the referenced object is persisted. From: Jason Pyeron [mailto:jpye...@pdinc.us] Sent: Sunday, May 24, 2020 1:09 PM To: INTERNAL Subject: RE: HHH-6221 foreign keys with shared columns @ManyToOne

[hibernate-dev] HHH-6221 foreign keys with shared columns

2020-05-22 Thread Jason Pyeron
I have been hunting around this morning trying to mitigate some issues of our schema and JPA mapping and https://hibernate.atlassian.net/browse/HHH-6221 seems most related. This is a specific case following on ยง2.4.1 and the other bugs I have worked with recently. Is there any more

Re: [hibernate-dev] Subject : Starting 5.4.16 release

2020-05-18 Thread Jason Pyeron
Is there a reason to not include HHH-13959? > -Original Message- > From: hibernate-dev-boun...@lists.jboss.org > [mailto:hibernate-dev-boun...@lists.jboss.org] > On Behalf Of andrea boriero > Sent: Monday, May 18, 2020 10:23 AM > To: Hibernate Dev > Subject: [hibernate-dev] Subject :

Re: [hibernate-dev] run a single unit test speed up?

2020-04-23 Thread Jason Pyeron
> -Original Message- > From: Sanne Grinovero > Sent: Thursday, April 23, 2020 8:43 AM > > On Thu, 23 Apr 2020 at 13:20, Jason Pyeron wrote: > > > > > -Original Message- > > > From: Sanne Grinovero > > > Sent: Thurs

[hibernate-dev] Trying to understand the significance and use of the sequence methods in Dialect

2020-04-23 Thread Jason Pyeron
HH-6950?jql=(text%20~%20sequence%20or%20text%20~%20sp_sequence_get_range%20)%20and%20(text%20~%20SQLServer%20or%20text%20~%20%22SQL%20Server%22%20or%20text%20~%20SQLServer2012Dialect%20or%20text%20~%20SQLServer2008Dialect%20or%20text%20~%20SQLServer2005Dialect%20or%20text%20~%20SQLServerDialect) -Jas

Re: [hibernate-dev] [hibernate/hibernate-orm] HHH-10956 test cases and fix (#3368)

2020-04-23 Thread Jason Pyeron
Github has been down for a while, so moving to mailing list. > Hi @pdinc-oss , > > the issue it is how you define the `IdClass` > > for such a case > > ``` > @Entity > @IdClass(PK.class) > public static class NodeS { > > @Id > @GeneratedValue(strategy = GenerationType.SEQUENCE) >

Re: [hibernate-dev] run a single unit test speed up?

2020-04-23 Thread Jason Pyeron
For an approximate 250x slow down compared to the test execution, sigh. > > > > > -Original Message- > > > From: hibernate-dev-boun...@lists.jboss.org > > > On > Behalf Of Jason > > > Pyeron > > > Sent: Wednesday, April 22, 2020 4:48 PM > &g

[hibernate-dev] HHH-10956 fixed, pull request pending

2020-04-22 Thread Jason Pyeron
in the hibernate provided unit testing framework and I have opened a ticket (HHH-13971) for those issues. It is likely a very low priority item. v/r, Jason Pyeron $ git logg -5 * 4138772878 2020-04-22 (HEAD -> HHH-10956) HHH-10956 put one line if in {} jpye...@pdinc.us * 683e00a

Re: [hibernate-dev] run a single unit test speed up?

2020-04-22 Thread Jason Pyeron
org.hibernate.test.annotations.cid 1 0.586s__100% For an approximate 250x slow down compared to the test execution, sigh. > -Original Message- > From: hibernate-dev-boun...@lists.jboss.org > On Behalf Of Jason > Pyeron > Sent: Wednesday, April 2

[hibernate-dev] run a single unit test???? do I really have to manually put -x for every task I do not want?

2020-04-22 Thread Jason Pyeron
userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 4m 38s 36 actionable tasks: 35 executed, 1 up-to-date -- Jason Pyeron | Architect PD Inc| 10 w 24th St | Baltimore, MD | .mil: jason.j.pyeron@mail.mil .com: jpye...@pdinc.us tel : 202

Re: [hibernate-dev] HHH-6044 / HHH-9662 and partial identifier generation - No part of a composite identifier may be null HibernateException

2020-04-21 Thread Jason Pyeron
On Behalf Of Jason > Pyeron > Sent: Tuesday, April 21, 2020 1:18 PM > To: 'Hibernate Dev' > Subject: Re: [hibernate-dev] HHH-6044 / HHH-9662 and partial identifier > generation - No part of a > composite identifier may be null HibernateException > > I have been reviewing

Re: [hibernate-dev] HHH-6044 / HHH-9662 and partial identifier generation - No part of a composite identifier may be null HibernateException

2020-04-21 Thread Jason Pyeron
Sent: Tuesday, April 21, 2020 12:20 PM To: Jason Pyeron Cc: Hibernate Dev Subject: Re: [hibernate-dev] HHH-6044 / HHH-9662 and partial identifier generation - No part of a composite identifier may be null HibernateException there is a PR related to this issue ( https://github.com/hibernate

Re: [hibernate-dev] HHH-6044 / HHH-9662 and partial identifier generation - No part of a composite identifier may be null HibernateException

2020-04-21 Thread Jason Pyeron
"publisher_id") @ManyToOne private Publisher publisherId; -Jason > -Original Message- > From: hibernate-dev-boun...@lists.jboss.org > [mailto:hibernate-dev-boun...@lists.jboss.org] > On Behalf Of Jason Pyeron > Sent: Tuesday, April 21, 2020 9:23 AM > To: hibe

Re: [hibernate-dev] HHH-11699 Hibernate ignores 'schema' attribute of @SequenceGenerator for Oracle --- and SQL Server --- sequences

2020-04-21 Thread Jason Pyeron
bernate-dev-boun...@lists.jboss.org > [mailto:hibernate-dev-boun...@lists.jboss.org] > On Behalf Of Jason Pyeron > Sent: Tuesday, April 21, 2020 8:58 AM > To: hibernate-dev@lists.jboss.org > Subject: Re: [hibernate-dev] HHH-11699 Hibernate ignores 'schema' attribute of > @SequenceGener

Re: [hibernate-dev] HHH-6044 / HHH-9662 and partial identifier generation - No part of a composite identifier may be null HibernateException

2020-04-21 Thread Jason Pyeron
GenerationType.IDENTITY) 77 private Long id; 78 79 @Id 80 @Column(name = "sub_id") 81 private Long subId; 82 From: Jason Pyeron [mailto:jpye...@pdinc.us] Sent: Tuesday, April 21, 2020 1:32 AM To: 'hib

Re: [hibernate-dev] HHH-11699 Hibernate ignores 'schema' attribute of @SequenceGenerator for Oracle --- and SQL Server --- sequences

2020-04-21 Thread Jason Pyeron
Sorry, accidentally sent to Andrea and not the list. From: Jason Pyeron [mailto:jpye...@pdinc.us] Sent: Tuesday, April 21, 2020 8:56 AM To: 'andrea boriero' Subject: RE: [hibernate-dev] HHH-11699 Hibernate ignores 'schema' attribute of @SequenceGenerator for Oracle --- and SQL Server

[hibernate-dev] HHH-11699 Hibernate ignores 'schema' attribute of @SequenceGenerator for Oracle --- and SQL Server --- sequences

2020-04-20 Thread Jason Pyeron
The issue is impacting current releases for both schema generation and runtime use. I do not have permissions to update the title/summary. -Jason ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org

Re: [hibernate-dev] HHH-13959 - OneToOne JoinTable with unique constraints work around?

2020-04-20 Thread Jason Pyeron
cuteUpdate(ResultSetReturnImpl.java:197) ... 28 more > -Original Message- > From: hibernate-dev-boun...@lists.jboss.org > [mailto:hibernate-dev-boun...@lists.jboss.org] > On Behalf Of Jason Pyeron > Sent: Monday, April 20, 2020 2:25 AM > To: hibernate-dev@lists.jboss.org &

Re: [hibernate-dev] HHH-13959 - OneToOne JoinTable with unique constraints work around?

2020-04-20 Thread Jason Pyeron
[oops, did not mean to post the code to users] I have narrowed it down, and I think these changes will address the issue. commit 6ffdc4d684b33777b1c483473444d25b642e0748 (HEAD -> HHH-13959, pdinc-oss/HHH-13959) Author: Jason Pyeron Date: Mon Apr 20 02:20:21 2020 -0400 HHH-13959 Ad

Re: [hibernate-dev] HHH-13959 - OneToOne JoinTable with unique constraints work around?

2020-04-19 Thread Jason Pyeron
nsumer) line: 102 SessionImpl.firePersist(PersistEvent) line: 710 SessionImpl.persist(Object) line: 696 JPAUnitTestCase.hhh13959TestProfile() line: 43 > -Original Message- > From: hibernate-dev-boun...@lists.jboss.org > [mailto:hibernate-dev-boun...@lists.jboss.org]

[hibernate-dev] HHH-13959 - OneToOne JoinTable with unique constraints work around?

2020-04-19 Thread Jason Pyeron
https://hibernate.atlassian.net/browse/HHH-13959 I started a DB migration today, now we are dead in the water due to this exception. When I persist an Entity on the owning side of the OneToOne(optional=true) relationship, and that property is null we are getting:

Re: [hibernate-dev] https://hibernate.atlassian.net/browse/HHH-9798 Unique constraint / not null of @JoinTable for @OneToOne not generated

2020-04-19 Thread Jason Pyeron
> -Original Message- > From: Jason Pyeron > Sent: Sunday, April 19, 2020 11:20 AM > > I think I have found another corner case on the > https://hibernate.atlassian.net/browse/HHH-9798 regression. > > > > > > @OneToOne(fetch = FetchType.LAZY) &g

[hibernate-dev] https://hibernate.atlassian.net/browse/HHH-9798 Unique constraint / not null of @JoinTable for @OneToOne not generated

2020-04-19 Thread Jason Pyeron
I think I have found another corner case on the https://hibernate.atlassian.net/browse/HHH-9798 regression. The cited example is: @OneToOne(fetch = FetchType.LAZY) @JoinTable( name = "ITEM_SHIPMENT", // Required! joinColumns = @JoinColumn(name =

[hibernate-dev] please close HHH-13939

2020-04-07 Thread Jason Pyeron
It was a failure of finding the documentation between 4.x and 5.x with regards to @GeneratedValue(AUTO) behavior. Setting hibernate.id.new_generator_mappings=false fixed it. v/r, Jason ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org