【问题标题】:Combine Hibernate class with @Bindable for SwingBuilder without Griffon?在没有 Griffon 的情况下将 Hibernate 类与 @Bindable 组合用于 SwingBuilder?
【发布时间】:2010-06-17 21:55:56
【问题描述】:

我已经在 Groovy/Gradle 中为我的应用程序实现了一个后端,现在正在尝试实现一个 GUI。

我使用 Hibernate 进行数据存储(使用 HSQLDB) http://groovy.codehaus.org/Using+Hibernate+with+Groovy (使用 Jasypt 进行加密)并且运行良好。

我想知道是否有任何使用 @Bindable 的好技巧,例如,@Entity 类,例如

@Entity class Book {
    @Id @GeneratedValue(strategy = GenerationType.AUTO)
    public Long id
    @OneToMany(cascade=CascadeType.ALL)
    public Set<Author> authors
    public String title
    String toString() { "$title by ${authors.name.join(', ')}" }
}

或者如果我是: (i) 要求 Griffon (ii) 完全走错了路?

谢谢! 米莎

【问题讨论】:

    标签: hibernate groovy griffon bindable


    【解决方案1】:

    好吧,看来我可以在 Hibernate @Entity 中使用 @Bindable 了!!

    米莎

    【讨论】:

      猜你喜欢
      • 2014-02-06
      • 2012-02-21
      • 2019-09-01
      • 2023-03-10
      • 2012-05-23
      • 2011-10-18
      • 1970-01-01
      • 2017-05-27
      • 1970-01-01
      相关资源
      最近更新 更多