derived field are readonly
This commit is contained in:
parent
9669b268c6
commit
88b6b6e67d
@ -44,7 +44,7 @@ public abstract class Database extends AbstractEntity implements Serializable {
|
|||||||
@Column(name = "database_id", columnDefinition = "integer", updatable=false, insertable=false)
|
@Column(name = "database_id", columnDefinition = "integer", updatable=false, insertable=false)
|
||||||
private long id;
|
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)
|
@Column(name = "engine", columnDefinition = "character varying(12)", updatable=false)
|
||||||
private String instance;
|
private String instance;
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ public abstract class Database extends AbstractEntity implements Serializable {
|
|||||||
|
|
||||||
@JoinColumn(name = "packet_id", columnDefinition = "integer", updatable=false)
|
@JoinColumn(name = "packet_id", columnDefinition = "integer", updatable=false)
|
||||||
@ManyToOne(fetch = EAGER)
|
@ManyToOne(fetch = EAGER)
|
||||||
@AnnFieldIO(validation="[a-z0-9]*", rw=ReadWriteAccess.WRITEONCE)
|
@AnnFieldIO(validation="[a-z0-9]*", rw=ReadWriteAccess.READONLY)
|
||||||
private Pac pac;
|
private Pac pac;
|
||||||
|
|
||||||
@AnnFieldIO(validation="[A-Za-z0-9\\_\\-]*", rw=ReadWriteAccess.WRITEONCE)
|
@AnnFieldIO(validation="[A-Za-z0-9\\_\\-]*", rw=ReadWriteAccess.WRITEONCE)
|
||||||
|
@ -51,13 +51,13 @@ public abstract class DatabaseUser extends AbstractEntity implements Serializabl
|
|||||||
@Transient
|
@Transient
|
||||||
private String password;
|
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)
|
@Column(name = "engine", columnDefinition = "character varying(12)", updatable=false)
|
||||||
protected String instance;
|
protected String instance;
|
||||||
|
|
||||||
@JoinColumn(name = "packet_id", columnDefinition = "integer", updatable=false)
|
@JoinColumn(name = "packet_id", columnDefinition = "integer", updatable=false)
|
||||||
@ManyToOne(fetch = EAGER)
|
@ManyToOne(fetch = EAGER)
|
||||||
@AnnFieldIO(validation="[a-z0-9]*", rw=ReadWriteAccess.WRITEONCE)
|
@AnnFieldIO(validation="[a-z0-9]*", rw=ReadWriteAccess.READONLY)
|
||||||
protected Pac pac;
|
protected Pac pac;
|
||||||
|
|
||||||
protected DatabaseUser() {
|
protected DatabaseUser() {
|
||||||
|
@ -61,7 +61,7 @@ public class UnixUser extends AbstractEntity implements Serializable {
|
|||||||
@Column(name = "shell", columnDefinition = "character varying(32)")
|
@Column(name = "shell", columnDefinition = "character varying(32)")
|
||||||
private String shell;
|
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)
|
@Column(name = "homedir", columnDefinition = "character varying(48)", updatable=false)
|
||||||
private String homedir;
|
private String homedir;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user