Use Entity ea = this.createAndSaveOneEntity("a", "aaa");