CRUD puts static fields in edit page

Bug #534424 reported by Leo Jay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Status tracked in 1.0
1.0
Fix Released
Medium
Nicolas Leroux
1.1
Fix Committed
Medium
Nicolas Leroux

Bug Description

create a simple model like this:

package models;

import play.db.jpa.Model;

import javax.persistence.Entity;

@Entity
public class TestModel extends Model {
    public static final int MAX_VALUE = 100;
    public int value;
}

in the CRUD add and edit page, the MAX_VALUE field is in the editable fields list.

Tags: crud model static
Revision history for this message
Leo Jay (python-leojay) wrote :
Revision history for this message
Nicolas Leroux (nicolas-lunatech) wrote :

Thanks for the patch. For the record, I used the isFinal instead, because you might want to modify static field if it is not a JPA entity for example. A final field cannot be modified and therefore should not been shown.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.