【发布时间】: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