org.mongolink.domain.mapper.SubclassMap Maven / Gradle / Ivy
/*
* MongoLink, Object Document Mapper for Java and MongoDB
*
* Copyright (c) 2012, Arpinum or third-party contributors as
* indicated by the @author tags
*
* MongoLink is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MongoLink is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Lesser GNU General Public License for more details.
*
* You should have received a copy of the Lesser GNU General Public License
* along with MongoLink. If not, see .
*
*/
package org.mongolink.domain.mapper;
public abstract class SubclassMap extends ClassMap {
public SubclassMap() {
super();
mapper = new SubclassMapper<>(persistentType());
}
@Override
protected SubclassMapper getMapper() {
return mapper;
}
@Override
protected void addMapperToContext(MapperContext context) {
getMapper().setContext(context);
}
private final SubclassMapper mapper;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy