Opened 11 years ago

Closed 11 years ago

#329 closed task (fixed)

Implement DAO's and write unit tests

Reported by: twagoo Owned by: peterwithers
Priority: major Milestone: DASISH backend
Component: DASISH backend Version:
Keywords: Cc: olhsha

Description

After discovering all methods on the interfaces (see #327), implement the DAO's using JdbcTemplate. Using this requires some Spring configuration, see ComponentRegistry for examples.

A nice approach for unit testing is to use HSQLDB as an in-memory database, clean and pre-populate for each test and do assertions on the query results (for methods that do SELECT) or on its state (INSERT/UPDATE/DELETE related methods).

Change History (3)

comment:1 Changed 11 years ago by DefaultCC Plugin

Cc: olhsha added

comment:2 Changed 11 years ago by olhsha

Done for Annotation, Source, Version, CachedRepresentation?. Obsolete and may be not complete for Notebook. Almost nothing is done for User.

comment:3 Changed 11 years ago by olhsha

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.