Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ChabVlad committed Sep 3, 2024
1 parent 50b0b84 commit c75ea55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package project.bookstore.repository.impl;

import java.util.List;

import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;
import project.bookstore.model.Book;
import project.bookstore.repository.BookRepository;

@Repository
public class BookRepositoryImpl implements BookRepository {
SessionFactory sessionFactory

@Override
public Book save(Book book) {
return null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package project.bookstore.service.impl;

import java.util.List;
import project.bookstore.model.Book;
import project.bookstore.service.BookService;

import java.util.List;

public class BookServiceImpl implements BookService {
@Override
public Book save(Book book) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect

spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true
spring.jpa.show-sql=true
2 changes: 1 addition & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect

spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true
spring.jpa.show-sql=true

0 comments on commit c75ea55

Please sign in to comment.