Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding simple cassandra repository implementation.
  • Loading branch information
boneill42 committed Jul 10, 2012
commit 3bfec0e5690c34b0f9a67954ef1f53b01d4bfdb6
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
*/
public class SimpleCassandraRepository<T, ID extends Serializable> implements CassandraRepository<T, ID> {

@Autowired
@Autowired
EntityManagerFactory entityManagerFactory;

/*
* (non-Javadoc)
*
Expand Down Expand Up @@ -143,7 +143,7 @@ public List<T> findAll(final Sort sort) {
*/
public T save(T arg0) {
EntityManager em = entityManagerFactory.createEntityManager();
em.persist(arg0);
em.persist(arg0);
em.close();
return arg0;
}
Expand All @@ -156,8 +156,7 @@ public T save(T arg0) {
* )
*/
public Iterable<T> save(Iterable<? extends T> arg0) {
// TODO Auto-generated method stub
return null;
throw new NotImplementedException();
}

}