com.avbravo.jgmongodesktopexample.ejb.PaisesFacade.java Source code

Java tutorial

Introduction

Here is the source code for com.avbravo.jgmongodesktopexample.ejb.PaisesFacade.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.avbravo.jgmongodesktopexample.ejb;

import com.avbravo.jgmongodesktopexample.entity.Paises;
import com.jgmongo.persistence.AbstractFacade;
import com.mongodb.MongoClient;

/**
 *
 * @author avbravo
 */
public class PaisesFacade extends AbstractFacade<Paises> {

    public PaisesFacade() {
        super(Paises.class, "fantasy", "paises");
    }

    @Override
    protected MongoClient getMongoClient() {
        MongoClient mongoClient = new MongoClient();
        return mongoClient;
    }

}