在ColdFusion中,非持久性屬性可能具有動態值嗎?屬性中的動態值ColdFusion ORM
一個例子是
Item.cfc
property name="myID" length="100" type="string" fieldtype="id" generator="guid";
property name="hasImageFlag" persistent=false default="{isNull(getItem().getIcon())};
property name="Icon" fieldtype="many-to-one" fkcolumn="imageID" cfc="image" lazy="true";
所以在這個例子hasImageFlag可能僅僅是ISNULL(getItem()時,調用getIcon()),這將返回true或false。
OT:ColdFusion是一個詞。 –
OT:拼寫固定。 – Leigh