Cameron McKenzie wrote:
Well, if it's a POJO that has a setter being called, you could just do a trim of the data in the setter of the POJO. But you did say you didn't want to do it programatically?
it's not the question or hard or easy. I don't want the definition of a field's length to live in two places: in the code and in the database. Then if it changes, it'll need to be changed twice (remembered to be changed twice). Since the value is already in the database and I want to reuse it.
Cameron McKenzie wrote:
What about changing the datatype in the system? CLOB or BLOB or something? Might that work?
Not for data is normally small, like event category name.