Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions example/PaymentDao.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
public class PaymentDao {

private static final Logger logger = LoggerFactory.getLogger(PaymentDao.class);

private final Session session;

public PaymentDao(Session session) {
this.session = session;
}

/**
* Saves payment in the database.
* @param payment the payment to save
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add throws IllegalArgumentException if payment is null.

* @throws IllegalArgumentException if payment is null
*/
public void save(Payment payment) {

}

/**
* Updates payment in the database
* @param payment
*/
public void update(Payment payment) {
}

public Payment get(String id) {
}

public void delete(Payment payment) {
}
}