João Paulo Cruz (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *commented* on HHH-16889 (
https://hibernate.atlassian.net/browse/HHH-16889?atlOrigin=eyJpIjoiMmY4Nm...
)
Re: Hibernate doesn't put TenantId on updates and deletes (
https://hibernate.atlassian.net/browse/HHH-16889?atlOrigin=eyJpIjoiMmY4Nm...
)
Just trying, adding @PartitionKey in the tenantid column, the updates and deletes now are
followed by tenantId,
but the problem wasn’ts solved, because in updates Hibernate make a select first and after
that it makes the update, considering the original tenant.
@Entity
public class Sector {
@JsonIgnore
@TenantId
@PartitionKey
@Column(name = "tenant_id", nullable = false)
private Long tenant;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "description", nullable = false, length = 100)
private String description;
}
(
https://hibernate.atlassian.net/browse/HHH-16889#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16889#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#100228- sha1:4a42edc )