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

sql server - MSSQL Text and Varchar(MAX) fields shown (MEMO) in DBGrid -

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

mysql - Flyway migration, Unable to obtain Jdbc connection from DataSource -