nhibernate « Component « JPA Q&A

1. HQL: Querying dynamic-component property    stackoverflow.com

If I have a mapping like this:

<class name="Library" table="Libraries">
  <dynamic-component name="Annotations">
    <property name="LibraryResolver.AlgorithmVersion" column="`LibraryResolver.AlgorithmVersion`" type="Int32" />
How should I write HQL or Linq-to-NHibernate query ...

2. Nhibernate multiple component properties of the same type in a class    stackoverflow.com

I have a class LINE which contains two properties of type POINT. I would like POINT to be a component property. If LINE were to contain only 1 POINT, this would be ...