Skip to content

Commit bf00c4c

Browse files
committed
chore: update namelature to product
Signed-off-by: Otavio Santana <[email protected]>
1 parent fb7c751 commit bf00c4c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
package com.otaviojava.demos.ddd;
22

3-
import jakarta.data.repository.BasicRepository;
43
import jakarta.data.repository.Repository;
4+
import jakarta.data.repository.Save;
55

66
@Repository
7-
public interface ProductRepository extends BasicRepository<Product, String> {
7+
public interface ProductRepository {
8+
9+
@Save
10+
Product save(Product product);
811
}

target/classes/META-INF/microprofile-config.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
# You may elect to redistribute this code under either of these licenses.
1010
#
1111

12-
jnosql.document.database=olympus
13-
jnosql.mongodb.url=mongodb://localhost:27017
12+
jnosql.arangodb.host=localhost:8529
13+
jnosql.document.database=products
14+
jnosql.keyvalue.database=products

0 commit comments

Comments
 (0)