Github user lahirus commented on a diff in the pull request:

    https://github.com/apache/stratos/pull/408#discussion_r35693429
  
    --- Diff: 
components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/Persistence/PersistenceManager.java
 ---
    @@ -0,0 +1,259 @@
    +package org.apache.stratos.manager.Persistence;
    +
    +import org.apache.commons.logging.Log;
    +import org.apache.commons.logging.LogFactory;
    +
    +import javax.persistence.*;
    +
    +import java.util.*;
    +/**
    + * Created by aarthy on 7/27/15.
    + */
    +public class PersistenceManager {
    +
    +    private static final Log log;
    +
    +    static {
    +        log = LogFactory.getLog(PersistenceManager.class);
    +    }
    +
    +    private EntityManagerFactory entitymanagerFactory = 
Persistence.createEntityManagerFactory("PersistenceUnit");
    +
    +    private static final PersistenceManager instance = new 
PersistenceManager();
    +
    +    EntityManager entityManager = null;
    +
    +
    +    public static PersistenceManager getInstance() {
    +        return instance;
    +    }
    +
    +
    +    /**
    +     *     Add  object to persist
    +     *  @param object
    +     *  @throws PersistenceException
    +     */
    +    public void add(Object object)
    +    {
    +        System.out.printf("entered");
    --- End diff --
    
    Remove sys.out s.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to