Skip to content

Instantly share code, notes, and snippets.

@rbaul
Created January 14, 2019 12:44
Show Gist options
  • Save rbaul/92d36986d3c85e0e768b6ef18213b95f to your computer and use it in GitHub Desktop.
Save rbaul/92d36986d3c85e0e768b6ef18213b95f to your computer and use it in GitHub Desktop.
Convert hibernate type from UUID to UUIDCharType in package
@TypeDefs({
@TypeDef(defaultForType = UUID.class, typeClass = UUIDCharType.class)
})
package com.example;
import org.hibernate.annotations.TypeDef;
import org.hibernate.annotations.TypeDefs;
import org.hibernate.type.UUIDCharType;
import java.util.UUID;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment