derived field are readonly

This commit is contained in:
Peter Hormanns 2015-09-11 19:32:00 +02:00
parent 9669b268c6
commit 88b6b6e67d
3 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ public abstract class Database extends AbstractEntity implements Serializable {
@Column(name = "database_id", columnDefinition = "integer", updatable=false, insertable=false)
private long id;
@AnnFieldIO(validation="[a-zA-Z]*", rw=ReadWriteAccess.WRITEONCE)
@AnnFieldIO(validation="[a-zA-Z]*", rw=ReadWriteAccess.READONLY)
@Column(name = "engine", columnDefinition = "character varying(12)", updatable=false)
private String instance;
@ -58,7 +58,7 @@ public abstract class Database extends AbstractEntity implements Serializable {
@JoinColumn(name = "packet_id", columnDefinition = "integer", updatable=false)
@ManyToOne(fetch = EAGER)
@AnnFieldIO(validation="[a-z0-9]*", rw=ReadWriteAccess.WRITEONCE)
@AnnFieldIO(validation="[a-z0-9]*", rw=ReadWriteAccess.READONLY)
private Pac pac;
@AnnFieldIO(validation="[A-Za-z0-9\\_\\-]*", rw=ReadWriteAccess.WRITEONCE)

View File

@ -51,13 +51,13 @@ public abstract class DatabaseUser extends AbstractEntity implements Serializabl
@Transient
private String password;
@AnnFieldIO(validation="[a-zA-Z]*", rw=ReadWriteAccess.WRITEONCE)
@AnnFieldIO(validation="[a-zA-Z]*", rw=ReadWriteAccess.READONLY)
@Column(name = "engine", columnDefinition = "character varying(12)", updatable=false)
protected String instance;
@JoinColumn(name = "packet_id", columnDefinition = "integer", updatable=false)
@ManyToOne(fetch = EAGER)
@AnnFieldIO(validation="[a-z0-9]*", rw=ReadWriteAccess.WRITEONCE)
@AnnFieldIO(validation="[a-z0-9]*", rw=ReadWriteAccess.READONLY)
protected Pac pac;
protected DatabaseUser() {

View File

@ -61,7 +61,7 @@ public class UnixUser extends AbstractEntity implements Serializable {
@Column(name = "shell", columnDefinition = "character varying(32)")
private String shell;
@AnnFieldIO(validation="[a-z0-9\\/\\_\\-\\.]*", rw=ReadWriteAccess.WRITEONCE)
@AnnFieldIO(validation="[a-z0-9\\/\\_\\-\\.]*", rw=ReadWriteAccess.READONLY)
@Column(name = "homedir", columnDefinition = "character varying(48)", updatable=false)
private String homedir;