I can not have separate setX() and setY() in my model, it will make things a lot harder. I only have getLocation() and setLocation(). But I don't want that to map to a separate LOCATIONS table, that would be crazy. What do I do?
Edit: I am talking Hibernate, with annotations.
posted 7 years ago
Found one way: make private getters and setters for x and y; make location transient (if that's the right word).
Is there a more elegant/generic way to do the same?