I am new to writing a spring rest based ws. I created a project with the following structure.
Java Resources
- src/test/java
- src/main/java
- com/sample/rest
- controller (for the request mappings)
- domain (for POJOs)
- service (for business logic)
- utility (for utility methods)
- dao (for database calls)
I started adding POJOs in the domain package, but my problem is that I have 2 kinds of POJOs in my application. One type which corresponds to my application table structure. Another type which corresponds to a third party result structure.
I am not sure how I can differentiate these 2 POJO types under my domain package.