package <adaptersPackage>;

<if(demoAttribute)>import java.util.List;<endif>
import org.springframework.beans.factory.annotation.Autowired;
import poussecafe.contextconfigurer.DataAccessImplementation;
import poussecafe.spring.mongo.storage.MongoDataAccess;
import poussecafe.spring.mongo.storage.SpringMongoDbStorage;

import <modelPackage>.<name>;
import <modelPackage>.<name>DataAccess;
import <modelPackage>.<name>Key;

@DataAccessImplementation(
    aggregateRoot = <name>.class,
    dataImplementation = <name>Data.class,
    storageName = SpringMongoDbStorage.NAME
)
public class <name>MongoDataAccess extends MongoDataAccess\<<name>Key, <name>Data, String> implements <name>DataAccess\<<name>Data> {
<if(demoAttribute)>

    @Override
    public List\<<name>Data> findByName(String name) {
        return repository.findByName(name);
    }
<endif>

    @Override
    protected String convertKey(<name>Key key) {
        return key.getValue();
    }

    @Override
    protected <name>DataMongoRepository mongoRepository() {
        return repository;
    }

    @Autowired
    private <name>DataMongoRepository repository;
}

package <adaptersPackage>;

<if(demoAttribute)>import java.util.List;<endif>
import org.springframework.beans.factory.annotation.Autowired;
import poussecafe.contextconfigurer.DataAccessImplementation;
import poussecafe.spring.mongo.storage.MongoDataAccess;
import poussecafe.spring.mongo.storage.SpringMongoDbStorage;

import <modelPackage>.<name>;
import <modelPackage>.<name>DataAccess;
import <modelPackage>.<name>Key;

@DataAccessImplementation(
    aggregateRoot = <name>.class,
    dataImplementation = <name>Data.class,
    storageName = SpringMongoDbStorage.NAME
)
public class <name>MongoDataAccess extends MongoDataAccess\<<name>Key, <name>Data, String> implements <name>DataAccess\<<name>Data> {

<if(demoAttribute)>
    @Override
    public List\<<name>Data> findByName(String name) {
        return repository.findByName(name);
    }
<endif>

    @Override
    protected String convertKey(<name>Key key) {
        return key.getValue();
    }

    @Override
    protected <name>DataMongoRepository mongoRepository() {
        return repository;
    }

    @Autowired
    private <name>DataMongoRepository repository;
}

Fix Maven plugin Spring Mong data access template.
Fix Maven plugin Spring Mong data access template.
pousse-cafe/pousse-cafe,pousse-cafe/pousse-cafe