-
-
Notifications
You must be signed in to change notification settings - Fork 202
Closed
Description
{
use(new Cassandra("cassandra://localhost/keyspace"));
get("/doSession", req -> {
Session session = req.require(Session.class);
// wok with session
});
get("/doMapper", req -> {
MappingManager manager = req.require(MappingManager.class);
Mapper<Beer> mapper = manager.mapper(Beer.class);
// wok with mapper
});
}