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

double exclamation marks in haskell -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

Qt Creator - Searching files with Locator including folder -