1000444: Fixed find by stack id query

The pool id comparison in the detached criteria was actually comparing
that the attributes pool id was the same as itself, which would yeild a
match for any entitlement after an entitlement was added with the correct
stack id.

The fix was to alias the pool criteria in the main query, and reference it
in the detached criteria. Detached criteria was comparing the attributes
pool.id to iteself, but the main criteria also had pool. Using alias
avoids the common name.
fix import
Merge pull request #356 from candlepin/mstead/1000444-fix-entitlement-by-stack-id

1000444: Fixed find by stack id query
Merge pull request #357 from candlepin/fiximport

fix import
Automatic commit of package [candlepin] release [0.8.23-1].
996925 - Exception while deleting manifest

The error is caused by the refresh pools. If a source pool is deleted before
the bonus pool, the deletion of the bonus pool causes the error in the trace.
In this scenario, the bonus pools will now not be deleted explicitly.

Also cleaned up the annotations as both javax.persistence.CascadeType.ALL and
hibernate.CascadeType.ALL were used on the same relationship. This has been shown
to cause conflicts. Removed the hibernate.CascadeType.MERGE because it is redundant.
Merge pull request #349 from candlepin/wottop/996925

996925: Exception while deleting manifest
Automatic commit of package [candlepin] release [0.8.24-1].