guido8686

Results comments of guido8686

I would like to vote for option 2. Mapping should be done in the resources which are NOT transactional. I don't see why that would be a problem? I do...

@windhood If you want to develop your application that way, just generate it without service layer! The service layer has no meaning at all if you don't seperate the layers...

I think collections should not be mapped. You mostly don't need them in frontend. Only in case of a many to many realationship this could be a problem. But I...

Another layer? So we have to map 2 times? Or just an exception for one entity? It is getting really messy.

That makes it even more stange. Then we are going to map to view models in the service layer... Absolutely not done imo. If you call it DTO it makes...

I see what you mean. Looking at the code I agree with you this is a special case where we need some sort of view model. I regret we have...

I think it would be nice to have a tool which can setup your database before each integration test. For example DB Unit is an option?

The problem is you need to build the whole tree of entities. When a relationship is required, and that relationship has another relationship that is required, you need to inject...

You dont have to let hibernate generate the id. You can insert it manually and then use it in other tables.

I like the idea of having a good architecture and seperation of concerns. The service layer should NOT handle mapping logic and or have anything to do with DTO's. So...