package edu.wright.hendrix11.familyTree.converter;

import javax.persistence.AttributeConverter;
import javax.persistence.Converter;

/**
 * @author Joe
 */
@Converter(autoApply = true)
public class BooleanConverter implements AttributeConverter<Boolean, Integer>
{
    @Override
    public Integer convertToDatabaseColumn(Boolean value)
    {
        if ( value )
            return 1;
        else
            return 0;
    }

    @Override
    public Boolean convertToEntityAttribute(Integer value)
    {
        if ( value == null )
            return null;
        else
            return !value.equals(0);
    }
}

@@ -259,16 +259,272 @@
 eger%3E%0A%7B%0A
+    %0A   /**%0A    * Converts %7B@code true%7D to %7B@code 1%7D, %7B@code false%7D to %7B@code 0%7D, and %7B@code null%7D to %7B@code null%7D.%0A    *%0A    * @param value the value to be converted%0A    * %0A    * @return an %7B@code Integer%7D representation of a %7B@code Boolean%7D value%0A    */%0A
     @Ove
@@ -601,24 +601,83 @@
         if (
+ value == null )%0A            return null;%0A        else if (
  value )%0A   
@@ -737,16 +737,267 @@
 %0A    %7D%0A%0A
+   /**%0A    * Converts %7B@code 1%7D to %7B@code true%7D, %7B@code 0%7D to %7B@code false%7D, and %7B@code null%7D to %7B@code null%7D.%0A    *%0A    * @param value the value to be converted%0A    * %0A    * @return a %7B@code Boolean%7D representation of an %7B@code Integer%7D value%0A    */%0A
     @Ove

Update BooleanConverter.java