From 88b6b6e67da2ac1052cf58ff1c18a102ed8d38f6 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Fri, 11 Sep 2015 19:32:00 +0200 Subject: [PATCH] derived field are readonly --- hsarback/src/de/hsadmin/mods/db/Database.java | 4 ++-- hsarback/src/de/hsadmin/mods/db/DatabaseUser.java | 4 ++-- hsarback/src/de/hsadmin/mods/user/UnixUser.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/db/Database.java b/hsarback/src/de/hsadmin/mods/db/Database.java index 74161e7..9ffb6c6 100644 --- a/hsarback/src/de/hsadmin/mods/db/Database.java +++ b/hsarback/src/de/hsadmin/mods/db/Database.java @@ -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) diff --git a/hsarback/src/de/hsadmin/mods/db/DatabaseUser.java b/hsarback/src/de/hsadmin/mods/db/DatabaseUser.java index 39a0684..7bd4895 100644 --- a/hsarback/src/de/hsadmin/mods/db/DatabaseUser.java +++ b/hsarback/src/de/hsadmin/mods/db/DatabaseUser.java @@ -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() { diff --git a/hsarback/src/de/hsadmin/mods/user/UnixUser.java b/hsarback/src/de/hsadmin/mods/user/UnixUser.java index 2653103..ed876d3 100644 --- a/hsarback/src/de/hsadmin/mods/user/UnixUser.java +++ b/hsarback/src/de/hsadmin/mods/user/UnixUser.java @@ -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;