This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git commit bd4440981cb700a3bd7c6ff10d196d2f11a74c40 Author: Yannick Martel <martel@©odelutin.com> Date: Wed Dec 2 17:40:29 2015 +0100 Ajout d'une classe pour fixer le dialect H2 plantant avec les varchar --- .../ifremer/coselmar/persistence/FixedH2Dialect.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/coselmar-persistence/src/main/java/fr/ifremer/coselmar/persistence/FixedH2Dialect.java b/coselmar-persistence/src/main/java/fr/ifremer/coselmar/persistence/FixedH2Dialect.java new file mode 100644 index 0000000..7c08931 --- /dev/null +++ b/coselmar-persistence/src/main/java/fr/ifremer/coselmar/persistence/FixedH2Dialect.java @@ -0,0 +1,20 @@ +package fr.ifremer.coselmar.persistence; + +import java.sql.Types; + +import java.sql.Types; + +/** + * Override the H2Dialect to fix detected wrong value + * + * @author Arnaud Thimel (Code Lutin) + */ +public class FixedH2Dialect extends org.hibernate.dialect.H2Dialect { + + public FixedH2Dialect() { + super(); + + registerColumnType( Types.LONGVARCHAR, String.format("varchar(%d)", Integer.MAX_VALUE) ); + } + +} \ No newline at end of file -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.