Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add deleteByIdBatch interface and my information #247

Merged
merged 7 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,31 @@ public void deleteById() {
}
// endregion

@Test
public void deleteByIdBatch() {
long now = System.currentTimeMillis();
Person person1 = new Person();
person1.setName("UBB" + now);

Person person2 = new Person();
person2.setName("UBB" + (now + 1));

Person person3 = new Person();
person3.setName("UBB" + (now + 2));

List<Person> people = new ArrayList<>();
people.add(person1);
people.add(person2);
people.add(person3);
repository.insertBatch(people);

List<String> peopleIds = new ArrayList<>();
peopleIds.add(person1.getName());
peopleIds.add(person2.getName());
peopleIds.add(person3.getName());
Assert.equals(repository.deleteByIdBatch(peopleIds),1);
}

// region graph special
@Test
public void insertEdge() {
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
<name>dieyi</name>
<email>[email protected]</email>
</developer>
<developer>
<name>shbone</name>
<email>[email protected]</email>
</developer>
</developers>

<properties>
Expand Down
Loading