[jboss-jira] [JBoss JIRA] (HIBERNATE-161) Null exception when auditing List<LocalDate>
Kgotso Buys (JIRA)
issues at jboss.org
Thu May 3 03:40:00 EDT 2018
Kgotso Buys created HIBERNATE-161:
-------------------------------------
Summary: Null exception when auditing List<LocalDate>
Key: HIBERNATE-161
URL: https://issues.jboss.org/browse/HIBERNATE-161
Project: Hibernate Integration
Issue Type: Bug
Reporter: Kgotso Buys
Assignee: Steve Ebersole
Attachments: image-2018-05-03-09-32-27-182.png
I have an embeddable class like this
@Embeddable
public class Test {
@ElementCollection
@CollectionTable(name="Test_Date")
@OrderColumn(name="Sequence")
@Column(name="TestDate")
private List<LocalDate> testDate = new ArrayList<LocalDate>();
In the database (SQL Server) hibernate creates a table with 3 columns:
1. TestID (PK)
2. TestDate (Allows Nulls)
3. Sequence (PK)
Envers than creates a table like this
1. REV (PK)
2. REVTYPE (Allows Nulls)
3. TestID (PK)
4. TestDate (PK)
5. Sequence (PK)
The problem is, my use case allows for TestDate to have nulls so I do not want it to be part of the PK. Is there a way to change this?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list