Skip to content

Commit e164c90

Browse files
authored
Merge pull request #32868 from KyleAure/bb306269-eclipselink-extract-date-from-datetime
2 parents 327958a + b16aafb commit e164c90

File tree

5 files changed

+303
-206
lines changed

5 files changed

+303
-206
lines changed

dev/com.ibm.ws.jpa.tests.jpa_32_fat/bnd.bnd

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#*******************************************************************************
2-
# Copyright (c) 2022,2024 IBM Corporation and others.
2+
# Copyright (c) 2022, 2025 IBM Corporation and others.
33
# All rights reserved. This program and the accompanying materials
44
# are made available under the terms of the Eclipse Public License 2.0
55
# which accompanies this distribution, and is available at
@@ -13,15 +13,19 @@
1313
-include= ~../cnf/resources/bnd/bundle.props
1414
bVersion=1.0
1515

16-
src: \
16+
src:\
1717
fat/src,\
1818
test-applications/helpers/DatabaseManagement/src,\
19-
test-applications/jpabootstrap/src,\
2019
test-applications/jakartadata/src,\
21-
test-applications/jakartapersistence/src
20+
test-applications/jakartapersistence/src,\
21+
test-applications/jpabootstrap/src
2222

2323
fat.project: true
24-
tested.features: databaseRotation, persistence-3.2, persistencecontainer-3.2, servlet-6.1
24+
tested.features:\
25+
databaseRotation,\
26+
persistence-3.2,\
27+
persistencecontainer-3.2,\
28+
servlet-6.1
2529

2630
# To define a global minimum java level for the FAT, use the following property.
2731
# If unspecified, the default value is ${javac.source}
@@ -32,17 +36,18 @@ javac.target: 17
3236

3337
# Dependencies may be local bundles (e.g. io.openliberty.jakarta.servlet.6.1)
3438
# or binaries from Artifactory (e.g. commons-logging:commons-logging)
35-
-buildpath: \
39+
-buildpath:\
3640
com.ibm.ws.componenttest.2.0;version=latest,\
3741
com.ibm.ws.jpa_testframework.jakarta;version=latest,\
3842
io.openliberty.jakarta.annotation.3.0;version=latest,\
3943
io.openliberty.jakarta.cdi.4.1;version=latest,\
4044
io.openliberty.jakarta.enterpriseBeans.4.0;version=latest,\
4145
io.openliberty.jakarta.jsonp.2.1;version=latest,\
42-
io.openliberty.jakarta.servlet.6.1;version=latest,\
4346
io.openliberty.jakarta.persistence.3.2;version=latest,\
47+
io.openliberty.jakarta.servlet.6.1;version=latest,\
4448
io.openliberty.jakarta.transaction.2.0;version=latest,\
4549
io.openliberty.jakarta.validation.3.1;version=latest,\
4650
io.openliberty.org.testcontainers;version=latest,\
4751
org.jboss.shrinkwrap:shrinkwrap-impl-base;version=1.2.3,\
4852
org.jboss.shrinkwrap:shrinkwrap-spi;version=1.2.3
53+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2025 IBM Corporation and others.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License 2.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-2.0/
7+
*
8+
* SPDX-License-Identifier: EPL-2.0
9+
*******************************************************************************/
10+
package io.openliberty.jpa.data.tests.models;
11+
12+
import java.time.LocalDateTime;
13+
14+
import jakarta.persistence.Entity;
15+
import jakarta.persistence.GeneratedValue;
16+
import jakarta.persistence.Id;
17+
18+
@Entity
19+
public class Showtime {
20+
21+
@Id
22+
@GeneratedValue
23+
public Integer id;
24+
25+
public String movie;
26+
27+
public LocalDateTime startTime;
28+
29+
public LocalDateTime endTime;
30+
31+
public Showtime() {
32+
}
33+
34+
public Showtime(Integer id, String movie, LocalDateTime startTime, LocalDateTime endTime) {
35+
this.id = id;
36+
this.movie = movie;
37+
this.startTime = startTime;
38+
this.endTime = endTime;
39+
}
40+
41+
public static Showtime of(String movie, LocalDateTime startTime, LocalDateTime endTime) {
42+
Showtime inst = new Showtime();
43+
inst.movie = movie;
44+
inst.startTime = startTime;
45+
inst.endTime = endTime;
46+
return inst;
47+
}
48+
}

0 commit comments

Comments
 (0)