The ChangeRoutineConsumedPK class was not added to the persistence.xml and i had turned off automatic class scanning.
Adding the class to the persistence.xml fixed the problem
<persistence-unit ...>
...
<class>au.com.combined.domain.changeroutine.ChangeRoutineConsumedPK</class>
...
</persistence-unit>