agentgt / jirm

A Java Immutable object Relational Mapper focused on simplicity, convenience, and thread safety.
Apache License 2.0
66 stars 10 forks source link

.insert() should not return void. #6

Open agentgt opened 11 years ago

agentgt commented 11 years ago

Currently to insert an object in JIRM you do:

dao.insert(object);

This is inconsistent with the fluent portion of the API and leaves no room for extensibility. It should be:

dao.insert(object).execute();
agentgt commented 11 years ago

First pass and backward compatibility. insert(...) will still work but it will not return void but a builder like object that will have a dummy method execute(). See issue #15