How to specify persistent fields and attributes

There are two ways to specify the persistent fields and further attributes for a persistence capable class: