Minor code clean-ups.
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ import org.baeldung.boot.model.Foo;
|
||||
|
||||
public interface FooRepository {
|
||||
|
||||
public void save(Foo foo);
|
||||
void save(Foo foo);
|
||||
|
||||
public Foo get(Integer id);
|
||||
Foo get(Integer id);
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ public class FooRepositoryImpl implements FooRepository {
|
||||
|
||||
@Override
|
||||
public Foo get(Integer id) {
|
||||
return (Foo) sessionFactory.getCurrentSession().get(Foo.class, id);
|
||||
return sessionFactory.getCurrentSession().get(Foo.class, id);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user