Jason Wylde wrote:So if I separate my data from my UI , what should the data layer return to the UI ? Just the data and then I do with it as I want or something else ? Any suggestions would be great !
Yes data. It's typically a
Java object. If you don't have a meaningful object (just a collection of data), there's a
pattern called "data transfer object" where you create an object just to hold the random data.