掲示板
Define Transient (non-persisted) Property of an Entity
6年前 に Johann Sonnenberg によって更新されました。
Define Transient (non-persisted) Property of an Entity
New Member 投稿: 20 参加年月日: 17/06/28 最新の投稿
I'll start out by stating that I am new to Liferay so I might not be using the correct nomenclature, but here goes.
I have an entity of Signup. It has properties of firstName, lastName, emailAddress. These are all persisted in the Signup table in the database via the service module I have created and I guess technically generated with Service Builder. On the front-end, I am using the aui taglibs on my sign up form and have the inputs of course linked via model-context to this bean/entity.
I want to however, create a property on the Signup object that will NOT be persisted in the database, or in Hibernate terms "transient".
I have looked in the module-hbm.xml, service.xml, and other places but I still cannot find how to define a transient property.
Any help is much appreciated.
Thanks.
I have an entity of Signup. It has properties of firstName, lastName, emailAddress. These are all persisted in the Signup table in the database via the service module I have created and I guess technically generated with Service Builder. On the front-end, I am using the aui taglibs on my sign up form and have the inputs of course linked via model-context to this bean/entity.
I want to however, create a property on the Signup object that will NOT be persisted in the database, or in Hibernate terms "transient".
I have looked in the module-hbm.xml, service.xml, and other places but I still cannot find how to define a transient property.
Any help is much appreciated.
Thanks.
6年前 に David H Nebinger によって更新されました。