File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,15 +33,14 @@ public interface UserRepository {
3333 User findUser (@Placeholder (" Name" ) String name );
3434}
3535
36- UserRepository repository = connection. createGate(UserRepository . class);
37- if (repository. save(new User (" User1" )). isSuccessful()) {
38- User user = repository. findUser(" User1" );
39- }
36+ UserRepository repository = connection. createProxy(UserRepository . class);
37+ repository. save(new User (" User" ));
38+ repository. findUser(" User" );
4039
4140// TIP: We support query builders too! Check wiki section.
4241```
4342``` java
44- QueryResult result = connection. insert()
43+ connection. insert()
4544 .into(" users" , " firstname" , " lastname" )
4645 .values(" John" , " Doe" )
4746 .execute();
@@ -51,4 +50,4 @@ QueryResult result = connection.insert()
5150This repository contains some basic rules specified in Code of Conduct file.<br >
5251
5352<a href =" https://github.com/ZorTik/AdvancedSQLClient/blob/master/CODE_OF_CONDUCT.md " >Code of Conduct</a ><br >
54- <a href =" https://www.flaticon.com/free-icons/database " title =" database icons " >Database icons created by Freepik - Flaticon</a >
53+ <a href =" https://www.flaticon.com/free-icons/database " title =" database icons " >Database icons created by Freepik - Flaticon</a >
You can’t perform that action at this time.
0 commit comments