Package org.springframework.data.mapping.context

Examples of org.springframework.data.mapping.context.MappingContextIsNewStrategyFactory$PropertyIsNullOrZeroNumberIsNewStrategy


      MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> mappingContext) {

    super(mappingContext);

    Assert.notNull(mappingContext, "MappingContext must not be null!");
    this.isNewStrategyFactory = new MappingContextIsNewStrategyFactory(mappingContext);
  }
View Full Code Here


  @Before
  public void setUp() {

    SampleMappingContext context = new SampleMappingContext();
    factory = new MappingContextIsNewStrategyFactory(context);
  }
View Full Code Here

   * @return
   * @throws ClassNotFoundException
   */
  @Bean
  public IsNewStrategyFactory isNewStrategyFactory() throws ClassNotFoundException {
    return new CachingIsNewStrategyFactory(new MappingContextIsNewStrategyFactory(mongoMappingContext()));
  }
View Full Code Here

        try {
        if (this.mappingContext == null) {
            this.mappingContext = new Neo4jMappingContext();
        }
        if (this.isNewStrategyFactory == null) {
            this.isNewStrategyFactory = new MappingContextIsNewStrategyFactory(mappingContext);
        }
        if (this.graphDatabaseService == null && graphDatabase instanceof DelegatingGraphDatabase) {
            this.graphDatabaseService = ((DelegatingGraphDatabase) graphDatabase).getGraphDatabaseService();
        }
        if (this.graphDatabase == null && graphDatabaseService instanceof GraphDatabase) {
View Full Code Here

        return factoryBean;
    }
   
    @Bean
    public IsNewStrategyFactory isNewStrategyFactory() throws Exception {
        return new MappingContextIsNewStrategyFactory(neo4jMappingContext());
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.mapping.context.MappingContextIsNewStrategyFactory$PropertyIsNullOrZeroNumberIsNewStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.