news_wei (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637c55c...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTQ1MGQ1ZTNj...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15741?atlOrigin=eyJpIjoiYTQ1MG...
) HHH-15741 (
https://hibernate.atlassian.net/browse/HHH-15741?atlOrigin=eyJpIjoiYTQ1MG...
) Explicit declaration assigned identifier generator does not work (
https://hibernate.atlassian.net/browse/HHH-15741?atlOrigin=eyJpIjoiYTQ1MG...
)
Issue Type: Bug Affects Versions: 6.1.5 Assignee: Unassigned Components: hibernate-core
Created: 21/Nov/2022 21:10 PM Environment: Hibernate core:6.1.5
JVM:JRE18
OS:win10 Priority: Major Reporter: news_wei (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637c55c...
)
if the id property is assigned by value,the exception list as below
ja karta.persistence.PersistenceException: Converting
org.hibernate.PersistentObjectException to JPA PersistenceException : detached entity
passed to persist: demo.jpa.demo2022112104.ProductUUID
if not assigned,the error message is: ids for this class must be manually assigned before
calling save()
the domain model is as follows
@Entity
public class ProductUUID {
@Id
@GeneratedValue(generator= "assigned" )
@GenericGenerator(name= "assigned" ,
strategy= "assigned" ,
parameters= {
@Parameter(name= "entity_name" ,
value= "ProductUUID"
)
}
)
private String id;
...
}
(
https://hibernate.atlassian.net/browse/HHH-15741#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15741#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210- sha1:eab5823 )