Example usage for javax.persistence AttributeConverter interface-usage

List of usage examples for javax.persistence AttributeConverter interface-usage

Introduction

In this page you can find the example usage for javax.persistence AttributeConverter interface-usage.

Usage

From source file org.kuali.rice.krad.data.jpa.converters.HashConverter.java

/**
 * Calls the core service to hash values going to the database.
 * 
 *  @author Kuali Rice Team (rice.collab@kuali.org)
 */
@Converter

From source file org.jpos.ee.converter.ObjectNodeConverter.java

@Converter(autoApply = true)
public class ObjectNodeConverter implements AttributeConverter<ObjectNode, String> {

    @Override
    public String convertToDatabaseColumn(ObjectNode attribute) {
        return attribute.toString();

From source file org.mitre.oauth2.model.convert.SimpleGrantedAuthorityStringConverter.java

/**
 * @author jricher
 *
 */
@Converter
public class SimpleGrantedAuthorityStringConverter implements AttributeConverter<SimpleGrantedAuthority, String> {

From source file eu.europa.ec.fisheries.uvms.reporting.service.entities.converter.ListStringConverter.java

@Converter(autoApply = true)
public class ListStringConverter implements AttributeConverter<List, String> {

    @Override
    public String convertToDatabaseColumn(List strings) {
        return strings == null ? null : StringUtils.join(strings, ",");

From source file eu.scidipes.toolkits.pawebapp.model.security.RoleConverter.java

/**
 * @author Tom Bunting
 * 
 */
@Converter
public final class RoleConverter implements AttributeConverter<Role, String>, Formatter<Role> {

From source file eu.scidipes.toolkits.palibrary.impl.jpa.CPIDConverter.java

/**
 * Dual use converter between between {@link CurationPersistentIdentifier} and <code>String</code>. Implements both the
 * JPA {@link AttributeConverter} and Spring {@link Formatter} to avoid duplication of printing and parsing logic.
 * 
 * @author Tom Bunting
 * 

From source file eu.scidipes.toolkits.palibrary.impl.jpa.CategoryConverter.java

/**
 * Dual use converter between {@link RepInfoCategory} and <code>String</code>. Implements both the JPA
 * {@link AttributeConverter} and Spring {@link Formatter} to avoid duplication of printing and parsing logic.
 * 
 * @author Tom Bunting
 *