Hi Stephen. For me, as you mention, from your Domain perspective, those current strings would be top Domain Entities with one “name” property.
With that you will benefit of all support given by Apache Isis (and DataNucleus) to them, which some of them you mention. HTH, Oscar > El 29/7/2015, a las 9:08, Stephen Cameron <[email protected]> > escribió: > > Hi, > > I want to do have some properties that are essentially String types, but > which have a limited range of values (code-lists or restricted > vocabularies). I want to allow these lists to be administered centrally, so > to add them to a single Administration menu item for admin users. > > For most users these codes should appears as lists of strings not as > objects, but making them objects seems to be the logical OO way to deal > with them in Isis. So they are basically objects with one 'name' property > (and maybe an id added by datanucleus). All users need to see is the name > property, no icon is needed. > > Also, if I make them objects I also will get referencial integrity > constraints applied in the database. > > I wonder there is a simple recipe for this? Óscar Bou Bou Responsable de Producto Auditor Jefe de Certificación ISO 27001 en BSI CISA, CRISC, APMG ISO 20000, ITIL-F 902 900 231 / 620 267 520 http://www.twitter.com/oscarbou <http://www.twitter.com/oscarbou> http://es.linkedin.com/in/oscarbou <http://es.linkedin.com/in/oscarbou> http://www.GesConsultor.com <http://www.gesconsultor.com/> Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona. Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.
