title: How to split my project into modules to be used in multiple platforms?
body: <p>I have a college project that manages bookmarks, a CRUD with folder structure. The project uses swing and hibernate all in the client. Now I want to make both a web and an android application version, but I don't know how to split the modules. For example, I thought about creating a web application with websockets and hibernate, and connect the swing, web and android in the websocket server.
  Is that a good choice? If not, what better options are there?</p>
  
  <p>Please note that the project has to be synchronized between the platforms and
  I wonder about the technologies that can be used also, and not just the pattern.</p>
  
  <p>I can use Spring too if necessary.</p>