List of usage examples for org.springframework.data.mongodb.core.mapping.event AbstractMongoEventListener subclass-usage
From source file demo.MongoEventListeener.java
/** * @author jllach */ @Component public class MongoEventListeener extends AbstractMongoEventListener<AfterEvent> {
From source file com.github.ffremont.microservices.springboot.manager.BeforeConvertMicroService.java
/** * * @author florent */ @Component public class BeforeConvertMicroService extends AbstractMongoEventListener<MicroService> {
From source file com.blstream.hooks.springframework.mongodb.event.CollectionCascadingMongoEventListener.java
/**
* Copyright 2013 BLStream
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
From source file com.blstream.hooks.springframework.mongodb.event.CascadingMongoEventListener.java
/**
* Copyright 2013 BLStream
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
From source file com.nayidisha.slowglow.mongo.DateCreatorMongoEventListener.java
public class DateCreatorMongoEventListener extends AbstractMongoEventListener<AbstractDocument> { @Override public void onBeforeConvert(AbstractDocument document) { DateTime d = new DateTime(); // set created date if necessary if (document.getCreatedDate() == null) {
From source file com.blstream.hooks.springframework.mongodb.event.ListCascadingMongoEventListener.java
/**
* Copyright 2013 BLStream
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
From source file com.github.carlomicieli.nerdmovies.models.MovieBeforeSaveListener.java
/** * The listener to change the document just before the movies are saved. * * @author Carlo Micieli */ public class MovieBeforeSaveListener extends AbstractMongoEventListener<Movie> {
From source file io.github.carlomicieli.springbooks.mongo.BeforeSaveListener.java
@Component public class BeforeSaveListener extends AbstractMongoEventListener<Book> { @Override public void onBeforeSave(Book source, DBObject dbo) { //source.setCreatedAt(new Date()); }
From source file com.trenako.listeners.WishListsEventListener.java
/** * @author Carlo Micieli */ @Component public class WishListsEventListener extends AbstractMongoEventListener<WishList> { @Override
From source file com.trenako.listeners.AccountsEventListener.java
/** * @author Carlo Micieli */ @Component public class AccountsEventListener extends AbstractMongoEventListener<Account> {