diff options
author | liamfallon <liam.fallon@est.tech> | 2023-02-02 14:42:33 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2023-02-06 15:54:04 +0000 |
commit | ccdc1b0814aa5609ade406a791128eb89bbc76e0 (patch) | |
tree | e403dd6f428d5adddae3858e7e872351a4a1d277 /integrity-monitor/src/main/java/org/onap/policy/common/im/jpa/ForwardProgressEntity.java | |
parent | 987b9f7a030a2389216c998225abb2602ef2dba3 (diff) |
Replace Eclipselink with Hibernate
Issue-ID: POLICY-4533
Change-Id: I9d2e4d90bf997935efad16e8ae4473d635ae9d65
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'integrity-monitor/src/main/java/org/onap/policy/common/im/jpa/ForwardProgressEntity.java')
-rw-r--r-- | integrity-monitor/src/main/java/org/onap/policy/common/im/jpa/ForwardProgressEntity.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/integrity-monitor/src/main/java/org/onap/policy/common/im/jpa/ForwardProgressEntity.java b/integrity-monitor/src/main/java/org/onap/policy/common/im/jpa/ForwardProgressEntity.java index 13595028..f4c3f4f0 100644 --- a/integrity-monitor/src/main/java/org/onap/policy/common/im/jpa/ForwardProgressEntity.java +++ b/integrity-monitor/src/main/java/org/onap/policy/common/im/jpa/ForwardProgressEntity.java @@ -3,6 +3,7 @@ * Integrity Monitor * ================================================================================ * Copyright (C) 2017-2018, 2020-2021 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2023 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,6 +26,7 @@ import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.PrePersist; import javax.persistence.Table; @@ -35,9 +37,10 @@ import lombok.Setter; @Entity @Table(name = "ForwardProgressEntity") -@NamedQuery(name = " ForwardProgressEntity.findAll", query = "SELECT e FROM ForwardProgressEntity e ") -@NamedQuery(name = "ForwardProgressEntity.deleteAll", query = "DELETE FROM ForwardProgressEntity WHERE 1=1") -// @SequenceGenerator(name="seqForwardProgress", initialValue=1, allocationSize=1) +@NamedQueries({ + @NamedQuery(name = " ForwardProgressEntity.findAll", query = "SELECT e FROM ForwardProgressEntity e "), + @NamedQuery(name = "ForwardProgressEntity.deleteAll", query = "DELETE FROM ForwardProgressEntity WHERE 1=1") +}) @Getter @Setter @NoArgsConstructor @@ -45,7 +48,6 @@ public class ForwardProgressEntity extends DateEntity { private static final long serialVersionUID = 1L; @Id - // @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="seqForwardProgress") @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "forwardProgressId") @Setter(AccessLevel.NONE) |