File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
hibernate-core/src/main/java/org/hibernate/dialect/function Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2626
2727
2828/**
29- * The HQL {@code ordinal ()} function returns the ordinal value of an enum
29+ * The HQL {@code string ()} function returns the string value of an enum
3030 * <p>
31- * For enum fields mapped as ORDINAL it's a synonym for {@code cast(x as Integer )}. Same as {@link CastStrEmulation} but for Integer .
32- * For enum fields mapped as STRING or ENUM it's a case statement that returns the ordinal value .
31+ * For enum fields mapped as STRING or ENUM it's a synonym for {@code cast(x as String )}. Same as {@link CastStrEmulation}.
32+ * For enum fields mapped as ORDINAL it's a case statement that returns the bane if enum .
3333 *
34- * @author Luca Molteni
34+ * @author Luca Molteni, Cedomir Igaly
3535 */
3636public class StringFunction
3737 extends AbstractSqmSelfRenderingFunctionDescriptor {
You can’t perform that action at this time.
0 commit comments