mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
47 lines
674 B
Java
47 lines
674 B
Java
package com.avaje.tests.json.transientproperties;
|
|
|
|
import com.avaje.ebean.annotation.Sql;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Transient;
|
|
import java.util.List;
|
|
|
|
@Sql
|
|
@Entity
|
|
public class ModelA {
|
|
|
|
@Id
|
|
int id;
|
|
|
|
String a;
|
|
|
|
// transient mapping to an entity bean
|
|
@Transient
|
|
List<ModelB> list;
|
|
|
|
public String getA() {
|
|
return a;
|
|
}
|
|
|
|
public void setA(String a) {
|
|
this.a = a;
|
|
}
|
|
|
|
public List<ModelB> getList() {
|
|
return list;
|
|
}
|
|
|
|
public void setList(List<ModelB> list) {
|
|
this.list = list;
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
}
|