I suspect you have passed a child entity or collection, which is initialized in other session, to Shares entity and, when saving, Hibernate tries to save the child entity or collection and thus resulting in lazy-init exception.