diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client1.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client1.java index 363777046e..58676b6529 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client1.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client1.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2023 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -266,8 +266,8 @@ public void createIntTestData() { getEntityTransaction().begin(); getEntityManager().persist(new Int_Field("1")); getEntityManager().persist(new Int_Property("2")); - getEntityManager().persist(new Integer_Field("3", new Integer(0))); - getEntityManager().persist(new Integer_Property("4", new Integer(0))); + getEntityManager().persist(new Integer_Field("3")); + getEntityManager().persist(new Integer_Property("4")); getEntityTransaction().commit(); } catch (Exception e) { diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client2.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client2.java index 0aab00e14b..52898765ae 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client2.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client2.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2023 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -264,8 +264,8 @@ public void createShortTestData() { getEntityTransaction().begin(); getEntityManager().persist(new Short_Field("1")); getEntityManager().persist(new Short_Property("2")); - getEntityManager().persist(new ShortClass_Field("3", new Short((short) 0))); - getEntityManager().persist(new ShortClass_Property("4", new Short((short) 0))); + getEntityManager().persist(new ShortClass_Field("3")); + getEntityManager().persist(new ShortClass_Property("4")); getEntityTransaction().commit(); } catch (Exception e) { logger.log(Logger.Level.ERROR, "Unexpected Exception in createShortTestData:", e); diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client3.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client3.java index da437cb0e8..b33ebf426e 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client3.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client3.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2023 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -264,8 +264,8 @@ public void createLongTestData() { getEntityTransaction().begin(); getEntityManager().persist(new Long_Field("1")); getEntityManager().persist(new Long_Property("2")); - getEntityManager().persist(new LongClass_Field("3", new Long(0))); - getEntityManager().persist(new LongClass_Property("4", new Long(0))); + getEntityManager().persist(new LongClass_Field("3")); + getEntityManager().persist(new LongClass_Property("4")); getEntityTransaction().commit(); } catch (Exception e) { logger.log(Logger.Level.ERROR, "Unexpected Exception in createLongTestData:", e); diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client4.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client4.java index 177590f92f..7c349fac36 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client4.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Client4.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2023 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -175,9 +175,8 @@ public void createTimestampTestData() { try { getEntityTransaction().begin(); - Timestamp currentTime = new Timestamp(new Date().getTime()); - getEntityManager().persist(new Timestamp_Field("1", currentTime)); - getEntityManager().persist(new Timestamp_Property("2", currentTime)); + getEntityManager().persist(new Timestamp_Field("1")); + getEntityManager().persist(new Timestamp_Property("2")); getEntityTransaction().commit(); } catch (Exception e) { logger.log(Logger.Level.ERROR, "Unexpected Exception in createTimestampTestData:", e); diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Integer_Field.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Integer_Field.java index 6a9b3ff990..bdca60065d 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Integer_Field.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Integer_Field.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -45,12 +45,6 @@ public Integer_Field(String id) { this.id = id; } - public Integer_Field(String id, Integer basicInteger) { - - this.id = id; - this.basicInteger = basicInteger; - } - public String getId() { return id; } diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Integer_Property.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Integer_Property.java index b2c4e8bb7a..cac4373c29 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Integer_Property.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Integer_Property.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -39,12 +39,6 @@ public Integer_Property(String id) { this.id = id; } - public Integer_Property(String id, Integer basicInteger) { - - this.id = id; - this.basicInteger = basicInteger; - } - @Id public String getId() { return id; diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/LongClass_Field.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/LongClass_Field.java index 42adfdc99d..5b120e017f 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/LongClass_Field.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/LongClass_Field.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -50,12 +50,6 @@ public LongClass_Field(String id) { this.id = id; } - public LongClass_Field(String id, Long value) { - - this.id = id; - this.basicLong = value; - } - public String getId() { return id; } diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/LongClass_Property.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/LongClass_Property.java index 1d03e89f7f..876b145d46 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/LongClass_Property.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/LongClass_Property.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -44,12 +44,6 @@ public LongClass_Property(String id) { this.id = id; } - public LongClass_Property(String id, Long value) { - - this.id = id; - this.basicLong = value; - } - @Id public String getId() { return id; diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/ShortClass_Field.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/ShortClass_Field.java index eb61dbca49..65f7d148d3 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/ShortClass_Field.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/ShortClass_Field.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -50,12 +50,6 @@ public ShortClass_Field(String id) { this.id = id; } - public ShortClass_Field(String id, Short value) { - - this.id = id; - this.basicShort = value; - } - public String getId() { return id; } diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/ShortClass_Property.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/ShortClass_Property.java index 0a8be851eb..d12be03e99 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/ShortClass_Property.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/ShortClass_Property.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -44,12 +44,6 @@ public ShortClass_Property(String id) { this.id = id; } - public ShortClass_Property(String id, Short value) { - - this.id = id; - this.basicShort = value; - } - @Id public String getId() { return id; diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Timestamp_Field.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Timestamp_Field.java index f32011a7f6..68cd79085f 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Timestamp_Field.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Timestamp_Field.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -47,12 +47,6 @@ public Timestamp_Field(String id) { this.id = id; } - public Timestamp_Field(String id, Timestamp basicTimestamp) { - - this.id = id; - this.basicTimestamp = basicTimestamp; - } - public String getId() { return id; } diff --git a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Timestamp_Property.java b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Timestamp_Property.java index f187913a40..3ca86f401f 100644 --- a/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Timestamp_Property.java +++ b/jpa/spec-tests/src/main/java/ee/jakarta/tck/persistence/core/annotations/version/Timestamp_Property.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -41,12 +41,6 @@ public Timestamp_Property(String id) { this.id = id; } - public Timestamp_Property(String id, Timestamp basicTimestamp) { - - this.id = id; - this.basicTimestamp = basicTimestamp; - } - @Id public String getId() { return id;