Thanks for your reply,
I am having below functions in GenericJcrDaoImpl.
@SuppressWarnings("unchecked")
public T execute(JcrMappingCallback callback) throws
DataAccessException {
return (T) jcrMappingTemplate.execute(callback);
}
public T save(final T node) {
execute(new JcrMappingCallback() {
public Object doInJcrMapping(ObjectContentManager
manager) throws
JcrMappingException {
manager.insert(node);
manager.save();
return null;
}
});
return node;
}
and i am extending GenericJcrDaoImpl in my JcrFileNodeDaoImpl
public class JcrFileNodeDaoImpl extends GenericJcrDaoImpl<JcrFileNode,
String> implements JcrFileNodeDao {
}
so it automatically calls the save method in GenericJcrDaoImpl.
-----
Regards
Pradeep Kudale
--
View this message in context:
http://jackrabbit.510166.n4.nabble.com/OCM-Not-able-to-get-the-list-of-nodes-added-in-current-session-tp2076858p2076930.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.