All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ftl.data.mongo.$$MongoRepositoryTemplateftl Maven / Gradle / Ivy

There is a newer version: 0.11
Show newest version
<#include "../../common-lib.javaftl">
<#-- -------------------------------------------------------------------------------------------------------- -->
public final class ${JAVA_REPOSITORY_IMPL_CLASS} extends ${JAVA_REPOSITORY_ABSTRACT_CLASS} implements ${JAVA_REPOSITORY_INTERFACE} {

    <#list JAVA_MODEL_TRANSFORMERS as TRANSFORMER>
    private final ${TRANSFORMER.javaSimpleClassName} ${TRANSFORMER.instanceName} =
            new ${TRANSFORMER.javaSimpleClassName}();

    
    public ${JAVA_REPOSITORY_IMPL_CLASS}(final MongoDatabase mongoDatabase) {
        super(${JAVA_REPOSITORY_INTERFACE}.class, mongoDatabase.getCollection("${MONGO_COLLECTION_NAME}"));
    }
    <#list JAVA_REPOSITORY_METHODS as METHOD>

    @Override
    public ${METHOD.returnType} ${METHOD.name}(${METHOD.params}) {
        <#list METHOD.bodyLines as line>
        ${line}
        
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy