<分区>
我还有一个如下形式的VO对象
public class DummyVO {
private int id;
private String message;
//getters and setters.
//set of constants that describe the DummyVO.
public static final String MESSAGE_CONST1 = "A-> Const value for message";
public static final String MESSAGE_CONST2 = "B-> Const value for message";
}
我想知道以上是否是好的做法,或者将常量移到一个单独的类中是否有意义。任何建议将不胜感激。