[hibernate-dev] [Validator] method level validation

2010-09-27 Thread Hardy Ferentschik
Hi, forwarding this email to hibernate-dev to get some more feedback. Here are some of my thoughts. The method level validation is suggested in Appendix C of the Bean Validation specification. The method signatures there all return a set of ConstraintViolations. The question is how binding th

[hibernate-dev] Dialect documentation

2010-09-27 Thread Norman Bauer
Could anyone provide me with links to any guidance docouments/articles on creating a dialect? I have a fairly non standard database that I need to hook into any guidance would be greatly appreciated. Thanks, Norm ___ hibernate-dev mailing list hibernate-

[hibernate-dev] Annotation name for column-level read/write expression

2010-09-27 Thread Emmanuel Bernard
Hey guys, I've implemented http://opensource.atlassian.com/projects/hibernate/browse/HHH-4510 and committed it. It basically looks like that @Entity class CreditCard { @Column(name="credit_card_num") @ReadWriteExpression( forColumn="credit_card_num", read="decrypt(credit_card_

Re: [hibernate-dev] Annotation name for column-level read/write expression

2010-09-27 Thread Paul Benedict
I am not happy about @ReadWriteExpression either. Why not just @ReadExpression and @WriteExpression? I don't even think you need the forColumn attribute -- it could be derived out of the metadata. On Mon, Sep 27, 2010 at 5:10 PM, Emmanuel Bernard wrote: > Hey guys, > I've implemented > http://op

[hibernate-dev] Transaction API

2010-09-27 Thread Steve Ebersole
Currently there is a big discrepancy between the documentation for some of the methods on org.hibernate.Transaction and the actual code. Specifically the methods isActive(), wasRolledBack() and wasCommitted() explicitly state that they only account for the "local state" of the transaction object, n

Re: [hibernate-dev] Annotation name for column-level read/write expression

2010-09-27 Thread Steve Ebersole
@Wrapper( forColumn="credit_card_num", read="decrypt(credit_card_num)", write="encrypt(?)" ) @ReadWrapper( forColumn="credit_card_num", expression="decrypt(credit_card_num)" ) @WriteWrapper( forColumn="credit_card_num", expression="encrypt(?)" ) On Tue, 2010-09-28 at 00:10 +0200

Re: [hibernate-dev] Annotation name for column-level read/write expression

2010-09-27 Thread Steve Ebersole
Is the 'forColumn' attribute required if a single column value? On Mon, 2010-09-27 at 22:53 -0500, Steve Ebersole wrote: > @Wrapper( > forColumn="credit_card_num", > read="decrypt(credit_card_num)", > write="encrypt(?)" > ) > > @ReadWrapper( forColumn="credit_card_num", > express