fuzzydb icon indicating copy to clipboard operation
fuzzydb copied to clipboard

Extend @Transactional support to take advantage of read-only

Open nealeu opened this issue 14 years ago • 0 comments
trafficstars

We want to be able to do something like:

@Autowired
private DataOperations dataOps;

@Transactional(readonly=true)
public void getSomeData(Model model) {
    ResultSet results = dataOps.query( resultClass, searchSpec, numResults );

    // Stick the results in the model
}

For the simple case (for now), we can autowire a single authoritative Store instance. In future well need to pick a Store instance on the basis of wether we are reading or writing (read only can use nonAuth).

nealeu avatar May 04 '11 19:05 nealeu