Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
EgorkaKulikov opened this issue Aug 28, 2023 · 0 comments · Fixed by #2567
Closed
Assignees
Labels
comp-codegen Issue is related to code generator comp-spring Issue is related to Spring projects support ctg-enhancement New feature, improvement or change request

Comments

@EgorkaKulikov
Copy link
Collaborator

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.

@EgorkaKulikov EgorkaKulikov added the ctg-enhancement New feature, improvement or change request label Aug 28, 2023
@EgorkaKulikov EgorkaKulikov added the comp-codegen Issue is related to code generator label Aug 28, 2023
@EgorkaKulikov EgorkaKulikov added the comp-spring Issue is related to Spring projects support label Aug 28, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in UTBot Java Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-codegen Issue is related to code generator comp-spring Issue is related to Spring projects support ctg-enhancement New feature, improvement or change request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants