[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 history on this bug than is in the comments of it and the 
related tickets? We are going to have to dive in and fix and was hoping to have 
a good survey of the landscape first.

 

We will make test case(s) along with some patches.

 

--- BREAK ---

 

Tracking internally as https://projects.pdinc.us/show_bug.cgi?id=2115 .

 

In our codebase we got here because of (edited for clarity)

 

@ManyToOne

@JoinColumns

({

@JoinColumn(name = "id", referencedColumnName = "request_id", 
insertable = false, updatable = false),

@JoinColumn(name = "head", referencedColumnName = "id")

})

Signature head;

 

@Id

@GeneratedValue(strategy = GenerationType.SEQUENCE)

Long id;

 

 

Repeated column in mapping for entity: Entity column: column (should be mapped 
with insert="false" update="false")

 

Which then leads to

 

Mixing insertable and non insertable columns in a property is not allowed: 
Entity.column

 at 
org.hibernate.cfg.Ejb3Column.checkPropertyConsistency(Ejb3Column.java:718)

 

At this moment, using the following workaround:

@ManyToOne

@JoinColumns

({

@JoinColumn(name = "id", referencedColumnName = "request_id", 
insertable = false, updatable = false),

@JoinColumn(name = "head", referencedColumnName = "id", insertable 
= false, updatable = false)

})

Signature head;

 

public void setHead(Signature head)

{

this.head = head;

// https://stackoverflow.com/a/49019669/58794 

head2115 = head == null ? null : head.getId();

}

 

private Long head2115;

 

@Column(name = "head")

private Long getHead2115()

{

return head2115;

}

 

Note: JoinFormula workaround is doubly not acceptable – 1. Nonstandard, 2. 
org.hibernate.mapping.Formula cannot be cast to org.hibernate.mapping.Column

___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] (no subject)

2020-05-22 Thread Post Office
qB‹-Î;x‘‰¾8ËôΝ¼óNòõÊf`5¬zȽ…
Ä[wZôà„%möé0˓;"ùDCÇù$4R›Éaèª(4ˆ7ž®ÏµÎ6_ÄaÇLlÉØã%£â¯ŽÀ9E„“Ǧ¡P»dÙI–2F#ܜԦ;¤^ÖrD¼‘¨š¿Z5†~÷7Ð1ÍeM!„Íu¿0SwzçåÐvDônÊin>–‹W¤DiÚÇ
‚z1÷Š‹ßÆé·Åu“.`Ò§Áì1á9ÑåÝm£Ggü°B¶ðæ7¨\`±'IÚى¡ŽEÀ(ÊRÔ9”t6”LÕہ´J®Á¿G1¿ì¸já~F-­¹šÛ:äVìä?¥
 Aë:0…
4h̶,öL"ˆÌàLõ*"H¸-8¦-nðÒUkáò7TÔü¢ô¢rRIŠš`«!ªÁCÆwî›ÁóVÉ®»Ãµ˜l·¿ÇmyÍtOȺRº‘V¬ÛY‚ªª}òáF÷ß³µ68%z·S•±dÀÔàä¾ÓÌ.±tX%å
 ÖjãZÔÊëù÷ÑDÂì^šæ½ÇÊïáÓÕÕ¸.,2ÈÕ¾o»¼ôš{W$S^•…
r´ÅÚÐ)ØÀ5Z])Ú~¹—ðt~±ëBGY†©e`)„„­cÚ,–ØBqÙxx…¹³4Í?œŽNCù̋ºÁbú1q’òÅäãF
GÜ¨ScÆI›˜¬Œ
¤Þ¬ŠHÖ{2—àe*4äµ¥PL¶iƒ·À]•ÚDƒ¾©Væ7®o÷¹MG{k^-qÕ{|aÑvl·Ï
SJ±³ÛØ^£¨~qPWÂV|t
UoҞÝk#ReµÇaú]s];X•Fá)ÀJyŜGåÄÅ6Bd6^H‚êR;¾©2øÜÁ/-ÒR›À»V6[—Êá
ìÈ,!(˜¡br™ÜÓL5Ÿa.ÖtÄÕBCI†xºBT¶¶¸uíDñ'À¥Òô‘}Û:‘&¦òuúXwvöܚâje¹’Àĕà}a±ÎñúÃp§j\¨ö˜nfü±r
¸ú/ºðvCä»HƟ‚ÒÚ²
ÉÇ
é:¿Çð¹Žq›QhÛ!³"¶a¥º^òð÷
Ï ?¢jàD{f·Ï'HoDM25Ì×sz{­)Ý÷üFë^Ú·l¤R÷·§è
í¥9ÒK×ç0`7½žÌ(Å뉛‹8ú›ì.­8a¥ëlØo_ÍIµj±ÁÛMO!Ü»èÑHŠöU,Ó2BÊüÌޔe,³&8–ËhMA:ÉÏh¬ˆrÚå9(|qpŽvÁúá¬O*†Ð>%ý¨ÛÓÅ
 "L¶[Ç܊äƒ!dÝvo;¿?åEђŒ§×'g
^Òv©õ¨Œu!B
ªêè–C-Dt”Æð©LÑøæFá´í-gãX…™ô¼IjÄy—nõ»…÷£ï6ùj6„Ég9qt W*–nè±ÄõØ
ôVT'õ0àÉÐt܋v1†¹¯žàn;gJ±¼wR_TÚH2xµ>ÊûL³…
cêÑÄ-XsêÜJïg¼Z«FÒ×®pËƃ`„ÑA_J.íy­mÔÛÝh&À$wLds(ͲíC5BÏB¼Ã.â¦íº;ó}k/,];ÄÕ4ø8%ùe`Š{·""Ú(»ð„»$™D
£ê1MMègÍJâ³Gi§‡'x­%^¬˜1Õ5­#§ëðEÒp9P©Owz¥w\zµ§…
Ë÷)}Ÿúô•øºŠ×WÀùGeEæìÖ 
ƒX/¹À.ýÀîûѵɣôق7jPšŒ¬ùÍÔì.Ńx>Þå2ã}è‰S^²ugÀ:þxr½£%ãb-*TżÏNn 
û•”XÝŲN³{B„­CF»V—êwˈ°W³çÆ*E7œ¥Ÿâ0Ñ`(õøím >¶z½1yp{sõÏÎ÷Øél²½Ê݇û®µÆß
ƒë­Ì^7V]Ä)6‘kjO)ӋAEkL‹H(˜9–Ð¦uzѦ‹É6µÒ\§õ¸9;ƒÆ‘6Ïì´¼§¡^\Œ¥Rýä¤éÅ¥t…Â
ŒwñÌÚÙ¶ZTn¡ÈŸé…É’«_‹dPuöü솻éCYƒÔ
rwMR§
´æ{ÍÎ}ÞÃ÷zù¤ºìÈúXáòŒoPrrûOfŸ’–âáŠ%þ£[/hݑ·ÁG\‹è*ɾ”ÜËM#Ηà8¾ÒŠmPš¬œ%z—~䁺º9zM¢L)TÆYo"÷d°"r±ÙÓ©K’“·tÔ/Åré/ìqçS柃hÓ¦¦6-
 ¢Í¬viHB©1usà’î­kˆù!Åå͏T%¯¹›·¼š>ïX¤T7óæ0ã,
Šü–ÅmÕ{Ï^C‚.Ð:ûPÊ}ÞÈO÷ÙÝʪ݁†˜g˜!Á4<în|„ëàÍCBNç¥Øï#éÜ֓1k4³
·À[.#b½¬"õÌo,x±û›6ƌL‰¨!iUžœÙCñü>
ù¬¤x4YÏå¦Ü)Ø[Ž4QDؚ›-‰VÒU¾Õ.M×-ßá___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] OpenJDK 15 EA build 24 is now available

2020-05-22 Thread Rory O'Donnell

Hi Sanne,

OpenJDK 15 EA build 24 is now available at http://jdk.java.net/15 *
*

  * These early-access , open-source builds are provided under the
  o GNU General Public License, version 2, with the Classpath
Exception .
  * Features
  o Proposed to target JDK 15
  + JEP 383  Foreign-Memory
Access API (Second Incubator)
  o Targeted to JDK 15
  + JEP 360  Sealed Classes
(Preview)
  + JEP 379  Shenandoah: A
Low-Pause-Time Garbage Collector (Production)
  o Integrated in JDK 15
  + JEP 339  Edwards-Curve
Digital Signature Algorithm (EdDSA)
  + JEP 371  Hidden Classes
  + JEP 372  Remove the
Nashorn JavaScript Engine
  + *JEP 373 **Reimplement
the Legacy DatagramSocket API*
  + JEP 374  Disable and
Deprecate Biased Locking
  + JEP 375  Pattern Matching
for instanceof (Second Preview)
  + JEP 377   ZGC: A Scalable
Low-Latency Garbage Collector
  + JEP 378  Text Blocks
  + JEP 381  Remove the
Solaris and SPARC Ports
  + JEP 384  Records (Second
Preview)
  * Changes in recent builds that maybe of interest:
  o build 24
  + *JEP 373 **Reimplement
the Legacy DatagramSocket API *(JDK-8241072
)
  + *JEP 374  *Disable and
Deprecate Biased Locking (JDK-8231264
)
  + Support for Unicode 13.0**(JDK-8239383
)
  + Incorrect Man pages of Javadocs tool (JDK-8238697
)
  # reported by Apache Lucene
  + 32-bit builds are broken after JDK-8242524 (JDK-8245070
)
  # Reported by JaCoCo*
*
  o build 23
  + localizedBy() should override localized values with default
values (JDK-8244245
)
  + Add revocation checking to jarsigner (JDK-8242060)

  o build 22
  + Deprecate -XX:ForceNUMA option (JDK-8243628
)
  + Removal of Comodo Root CA Certificate (JDK-8225069
)
  + Removal of DocuSign Root CA Certificate (JDK-8225068
)

  * Project Lanai Early-Access Builds - Build 15-lanai+1-101 (2020/5/14)
  o These builds are intended for developers looking to test and
provide feedback on using Project Lanai, which implements a new
Java 2D graphics rendering pipeline for macOS.
  o These builds are based upon the latest state of the current in
development JDK, and so may contain new features and unresolved
bugs unrelated to Project Lanai.
  o These early-access , open-source builds are provided under the
  + GNU General Public License, version 2, with the Classpath
Exception .
  o Please send feedback via e-mail to lanai-...@openjdk.java.net
. To send e-mail to this
address you must first subscribe to the mailing list
.
  * Project Loom Early-Access Builds - Build 15-loom+7-141 (2020/5/11)
  o These builds are intended for developers looking to "kick the
tyres" and provide feedback on using the API or by sending bug
reports. Warning: This build is based on an incomplete version
of JDK 15 .
  o These early-access , open-source builds are provided under the
  + GNU General Public License, version 2, with the Classpath
Exception .
  o Please send feedback via e-mail to loom-...@openjdk.java.net
. To send e-mail to this
address you must first subscribe