Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDL supports field comment,Since hibernate 5.6, @Comment annotation is supported #117

Open
cabbage89 opened this issue Nov 11, 2022 · 0 comments

Comments

@cabbage89
Copy link

DDL supports field annotations, @comment (org.hibernate.annotations.Comment)
hibernate/hibernate-orm#3611

https://github.com/axelor/axelor-open-platform/blob/master/axelor-tools/src/main/java/com/axelor/tools/code/entity/model/Property.java#L941

List<JavaAnnotation> all = new ArrayList<>();
.....
JavaAnnotation comment = new JavaAnnotation("org.hibernate.annotations.Comment");
    JavaCode commentValue = value.apply("{0:s}", title);
    if (commentValue != null) {
      comment.param("value", commentValue);
      all.add(comment);
    }

    all.add(widget);
    return all;
axeloradmin pushed a commit that referenced this issue Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant