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

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -