refactory: change id of new entities from BigDecimal to Long