[ROO-3712] Generate repositories for readOnly and readAndWrite entities Created: 17/Feb/16 Updated: 22/Feb/16 Resolved: 22/Feb/16
|Reporter:||Juan Carlos García del Canto||Assignee:||Juan Carlos García del Canto|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
When developer tries to generate new repository using repository commands, he needs to define for which entity wants to generate the repository.
Take in mind that this entity could be "readOnly" or "readAndWrite":
|Comment by Juan Carlos García del Canto [ 19/Feb/16 ]|
Generating Spring Data repositories taking in mind if entity is defined as readOnly or not.
By default, Spring Roo generates a RepositoryCustom interface and its implementation that extends QueryDslRepositorySupport.
All extends, implements, constructors, etc.. are included on ITDs to be able to update them automatically if referenced entity changes.
These changes have been applied on the following commits:
We are going to add @Transactional(readOnly=true) annotation on all generated repositories.
|Comment by Juan Carlos García del Canto [ 22/Feb/16 ]|
Including @Transactional(readOnly = true) for every generated Repository.
You could check applied changes on the following commit: