Unique « Component « JPA Q&A

1. How do I create a NHibernate Mapping file for a multi-value component that is a Unique set of columns?    stackoverflow.com

I'm using NHibernate and Fluent NHibernate to create a mapping file for a domain object (though I don't care if an answer uses fluent NHibernate or xml hbm syntax). And ...

2. Using Component as part of Unique key    forum.hibernate.org

Hi I have a Hibernate object that has an attribute that is a Hibernate component (I am using Xdoclet 1 to annotate my Hibernate objects). I wanted to know if there is a way to include a Hibernate component attribute as part of the unique key definition of a Hibernate object? Thanks Chris

3. Multi-column unique constraint on collection of components?    forum.hibernate.org

I am trying to add a unique multi-column constraint on a collection of components. Usually, I would achieve this by using unique-key="xyz" on the properties in question. However, in this (probably not so) special case, I need the constraint to include the collection key (i.e. I need the components to be "unique per parent entity"). In the example below, I want ...