java - Is there a way to provide a read-only representation of an EObject (EMF)? -


i have emf model , want provide read-only representation of objects in model (in order prevent unwanted changes being made model).

is there way provide (maybe kind of read-only proxy/facade eobjects)? don't want solve not generating setters. in fact, want avoid changing existing model classes far possible. instead, i'd rather add it...

thanks in advance, ingo

what approach take going depend on bigger picture of trying achieve.

if want framework work emf-transaction worth looking at. access model achieved through transactions , there support read-only transactions.

if want lighter emf objects implement read-only interfaces. shouldn't work add template automatically generate these if wished.

tas


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -