Sunday, August 23, 2015

How to make one of the attributes of EO saved in uppercase

In the EntityImpl getter class, return the string with upper case:
For e.g:- Name attribute should be changed to uppercase after commit:
    /**
     * Gets the attribute value for Name, using the alias name Name.
     * @return the value of Name
     */
    public String getName() {
        System.out.println("EO getName method");
        String name =(String)getAttributeInternal(NAME);
        if(name!=null){
            return name.toUpperCase();
        }
        else{
            return (String)getAttributeInternal(NAME);  
        }      
    }


No comments:

Post a Comment