1. Collection validation with hibernate annotation @Size doesn... seamframework.orgHi all, I have a collection which I bind to my rich faces datalist. I want to display a message if the collection has a size bigger than 10. I also want to display a message when it does not have any items in it. How do I display different messages for both? I now don't even get any message... What ... |
2. JPA Hibernate Custom Collections - Possible? seamframework.orgHi folks,i have read some blogs about using custom collection classes in JPA/Hibernate mappings, but all past tries were unsuccessful. I have implemented UserCollectionType (also heard of CustomCollectionType)...Now e.g. in this articlehttp://www.javalobby.org/java/forums/m91832311.htmlas well as in the test examples coming with Hibernate 3.1 an attribute called 'collection-type' is used in mapping file.Unfortunately i did not find a corresponding annotation, and i am ... |
3. Property 'c1' not found on type org.hibernate.collection.Pe... seamframework.org |
4. Property 'descs' not found on type org.hibernate.collection... seamframework.orgpackage com.uvio.fmis.model; // Generated 06/10/2009 2:31:46 PM by Hibernate Tools 3.2.4.GA import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; import org.hibernate.validator.Length; /** * UserIdConvLk generated by hbm2java */ @Entity @Table(name = "USER_ID_CONV_LK") public class UserIdConvLk implements java.io.Serializable { private int lkId; private String type; private Set |