I am not sure what class to use for model in this 3 tier architecture with struts 2 as my MVC.
Use case: Retrieve Destination (city) with a given name.
Architecture: Struts 2 MVC (Action) -> Service -> DestinationDAO
Struts 2: View <---> Action
(and this action invokes service layer)
DestinationDAO uses hibernate and has a function getDestination(String name)
to retrieve a destination from the database.
My question is: The action class needs to have a property that I can use for displaying destination info with the jsp. Should I use my Destination POJO (that I use with hibernate) or should it be a different object ?
I'd appreciate any suggestions/links to read on this subject.