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