Skip to content

Instantly share code, notes, and snippets.

View avandecreme's full-sized avatar

Antoine Vandecreme avandecreme

View GitHub Profile
public class InheritanceAwareMongoRepository<T, ID extends Serializable>
extends SimpleMongoRepository<T, ID> {
private final MongoOperations mongoOperations;
private final MongoEntityInformation<T, ID> entityInformation;
public InheritanceAwareMongoRepository(
MongoEntityInformation<T, ID> metadata,
MongoOperations mongoOperations) {
super(metadata, mongoOperations);
{
"components": {
"schemas": {
"Foo": {
"oneOf": [
{
"properties": {
"contents": {
"items": {
"anyOf": [