1 package de.juplo.jpa.converters;
4 import javax.persistence.AttributeConverter;
5 import javax.persistence.Converter;
9 * Converts an {@link URI} to its ASCII-representation
12 @Converter(autoApply = true)
13 public class URIConverter implements AttributeConverter<URI, String>
16 public String convertToDatabaseColumn(URI uri)
20 return uri.toASCIIString();
24 public URI convertToEntityAttribute(String string)
28 return URI.create(string);