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

java - How to print docx and pdf? -

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

java - IntelliJ to move a class along with conflicted classes to a new package? -