java - Sharing model classes in a maven module between apps -


i have webapp model classes containing hibernate annotation defines database properties (e.g. @column, @entity, etc). i'm creating new app writes same database.

is idea put model classes maven module shared between apps?

that correct approach in case. both scale able , reusable. maven dependencies can used across apps , support versioning well.

if mvc type of app developing, models @ best should kept separate , share able across modules.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -