| /* |
| * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. |
| * Copyright (c) 2018 IBM 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 |
| * http://www.eclipse.org/legal/epl-2.0, |
| * or the Eclipse Distribution License v. 1.0 which is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| */ |
| |
| // Contributors: |
| // 05/10/2018-master Joe Grassel |
| // - Github#93: Bug with bulk update processing involving version field update parameter |
| |
| package org.eclipse.persistence.jpa.test.version.model; |
| |
| import jakarta.persistence.Basic; |
| import jakarta.persistence.Entity; |
| import jakarta.persistence.Id; |
| import jakarta.persistence.Version; |
| |
| @Entity |
| public class IntegerVersionedEntity { |
| @Id |
| private long id; |
| |
| @Basic |
| private String data; |
| |
| public String getData() { |
| return data; |
| } |
| |
| public void setData(String data) { |
| this.data = data; |
| } |
| |
| @Version |
| private int theVersion; |
| |
| public long getId() { |
| return id; |
| } |
| |
| public void setId(long id) { |
| this.id = id; |
| } |
| |
| public int getTheVersion() { |
| return theVersion; |
| } |
| |
| public void setTheVersion(int theVersion) { |
| this.theVersion = theVersion; |
| } |
| |
| @Override |
| public String toString() { |
| return "IntegerVersionedEntity [id=" + id + ", data=" + data + ", theVersion=" + theVersion + "]"; |
| } |
| |
| |
| |
| } |