i've tried it thinking that it would cascade delete but it seems hibernate
wasnt deleting the orphan due to many-to-one relationships. :(

http://stackoverflow.com/questions/913073/workarounds-for-hibernates-lack-of-delete-orphan-support-for-one-to-one-and-man

So I ended up adding the service for it and delete it explicitly.

On Sat, Jan 26, 2013 at 5:22 PM, David Sanders <notifications@github.com>wrote:

> In
> api/src/main/java/org/openmrs/module/cpm/api/ProposedConceptService.java:
>
> > @@ -93,8 +90,20 @@
> >  	@Authorized(ConceptProposalConsts.MODULE_PRIVILEGE)
> >  	@Transactional
> >  	void deleteProposedConceptPackage(ProposedConceptPackage conceptPackage) throws APIException;
> > -	
> > -	//	Moving on to all of the services for the server side of the Concept Proposal Module
> > +
> > +    /**
> > +     * Deletes a ProposedConcept
> > +     *
> > +     * @param The ProposedConcept to be removed from persistent storage
> > +     * @throws APIException
> > +     * @since 1.0
> > +     */
> > +    @Authorized(ConceptProposalConsts.MODULE_PRIVILEGE)
> > +    @Transactional
> > +    void deleteProposedConcept(ProposedConcept proposedConcept) throws APIException;
>
> I'm not sure if we need the extra service method & DAO to delete proposed
> concepts as Hibernate should automatically delete orphaned objects.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/johnsyweb/openmrs-cpm/pull/3/files#r2784259>.
>
>