[wildfly-dev] Persisting attributes explicitly set to default values

Darran Lofthouse darran.lofthouse at jboss.com
Wed Aug 26 09:24:23 EDT 2015


The current approach is to let the attribute definition handle writing 
the attribute and this automatically skips writing if the value is the 
default value.

The legacy web subsystem was written before we had this ability.

On 26/08/15 14:17, Dominik Pospisil wrote:
> Is there any rule saying if an attribute should be persisted if it is
> explicitly set to it's default value or not?
>
> At least some attributes in the legacy web subsystem are persisted in such
> case and some are not.
>
> It seems that the API encourages to choose any of the options. Is there any
> reason for that?
>
> Many thanks,
>
> - Dominik
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>


More information about the wildfly-dev mailing list