开发者

Combine Hibernate class with @Bindable for SwingBuilder without Griffon?

I have implemented a back-end for my application in Groovy/Gradle, and am now trying to implement a GUI.

I am using Hibernate for my data storage (with HSQLDB) per http://groovy.codehaus.org/Using+Hibernate+with+Groovy (with Jasypt for encryption) and it is working quite well.

I was wondering if there are any good tips for using @Bindable with, e.g., an @Entity class such as

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

or if I am: (i) asking for Griffon (ii) completely on the wrong track?

Thank you! Misha


Alright, looks like I can use @Bindable in a Hibernate @Entity!!

Misha

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜