Search in sources :

Example 1 with Property

use of me.ruslanys.vkmusic.entity.Property in project selenium_java by sergueik.

the class DefaultPropertyService method set.

@CachePut(key = "#properties.class")
@Override
public <T extends Properties> T set(T properties) {
    Property entity = new Property(properties.getClass().getSimpleName(), JsonUtils.toString(properties));
    propertyRepository.save(entity);
    return properties;
}
Also used : Property(me.ruslanys.vkmusic.entity.Property) CachePut(org.springframework.cache.annotation.CachePut)

Aggregations

Property (me.ruslanys.vkmusic.entity.Property)1 CachePut (org.springframework.cache.annotation.CachePut)1