Class TranslationsProxyImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object findTranslationById​(java.lang.String id, java.lang.Class<?> entityClass)
      This method returns data as map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mongoTemplate

        @Autowired
        private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
    • Constructor Detail

      • TranslationsProxyImpl

        public TranslationsProxyImpl()
    • Method Detail

      • findTranslationById

        @Cacheable(value="translations",
                   key="#id")
        public java.lang.Object findTranslationById​(java.lang.String id,
                                                    java.lang.Class<?> entityClass)
        Description copied from interface: TranslationProxy
        This method returns data as map.
        Specified by:
        findTranslationById in interface TranslationProxy
        Parameters:
        id - identification for database entity, which will be revers on map
        entityClass - class of the entity
        Returns:
        data as object