Skip to content

Commit

Permalink
add a comment to example code (#7591)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Dec 1, 2023
1 parent b9ff974 commit c67ea33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion documentation/src/main/asciidoc/introduction/Entities.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ For example, the following converter will be automatically applied to any attrib
[source,java]
----
@Converter(autoApply = true)
public static class EnumSetConverter implements AttributeConverter<EnumSet<DayOfWeek>,Integer> {
public static class EnumSetConverter
// converts Java values of type EnumSet<DayOfWeek> to integers for storage in an INT column
implements AttributeConverter<EnumSet<DayOfWeek>,Integer> {
@Override
public Integer convertToDatabaseColumn(EnumSet<DayOfWeek> enumSet) {
int encoded = 0;
Expand Down

0 comments on commit c67ea33

Please sign in to comment.