Skip to content

Commit 45d2701

Browse files
Demo
1 parent 509f6b6 commit 45d2701

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

example/PaymentDao.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
public class PaymentDao {
2+
3+
private static final Logger logger = LoggerFactory.getLogger(PaymentDao.class);
4+
5+
private final Session session;
6+
7+
public PaymentDao(Session session) {
8+
this.session = session;
9+
}
10+
11+
/**
12+
* Saves payment in the database.
13+
* @param payment the payment to save
14+
*/
15+
public void save(Payment payment) {
16+
17+
}
18+
19+
/**
20+
* Updates payment in the database
21+
* @param payment
22+
*/
23+
public void update(Payment payment) {
24+
}
25+
26+
public Payment get(String id) {
27+
}
28+
29+
public void delete(Payment payment) {
30+
}
31+
}

0 commit comments

Comments
 (0)