blob: c3cc5fbcad40a3a67b3d7694c93d57082ab47e55 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 IBM Corporation. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* 12/05/2016-2.6 Jody Grassel
* - 443546: Converter autoApply does not work for primitive types
******************************************************************************/
package org.eclipse.persistence.jpa.converter.model.autoapply;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class ConvertEntityC2S {
@Id
private long id;
private char valueConvert;
@Convert(disableConversion=true)
private char valueNoConvert;
public ConvertEntityC2S() {
}
public ConvertEntityC2S(long id) {
this.id = id;
}
public ConvertEntityC2S(long id, char valueConvert, char valueNoConvert) {
this.id = id;
this.valueConvert = valueConvert;
this.valueNoConvert = valueNoConvert;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public char getValueConvert() {
return valueConvert;
}
public void setValueConvert(char valueConvert) {
this.valueConvert = valueConvert;
}
public char getValueNoConvert() {
return valueNoConvert;
}
public void setValueNoConvert(char valueNoConvert) {
this.valueNoConvert = valueNoConvert;
}
@Override
public String toString() {
return "ConvertEntityC2S [id=" + id + ", valueConvert=" + valueConvert + ", valueNoConvert=" + valueNoConvert + "]";
}
}