Skip to content

Create a variable named entityManager, not entityManager1 in Spring integration tests #2560

Closed
@EgorkaKulikov

Description

@EgorkaKulikov

Description

Currently our generated code looks like this:

@PersistenceContext
private EntityManager entityManager1;

Expected behavior

It seems that we have just one EntityManager per class, so it will be much more convenient to use a name without numerical index.

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorcomp-springIssue is related to Spring projects supportctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions