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

Multi-tenant problems #279

Open
695343126 opened this issue Apr 10, 2023 · 0 comments
Open

Multi-tenant problems #279

695343126 opened this issue Apr 10, 2023 · 0 comments

Comments

@695343126
Copy link

version: 3.0.0-SNAPAHOT

  1. insert entity to Mysql by SimpleMybatisRepository.insert
    in Entity class:
    @jakarta.persistence.Column(name = "tenant_id")
    private String tenantId;

what i do:
repository.insert(entity);

Exception:
Cause: java.sql.SQLSyntaxErrorException: Column 'tenant_id' specified twice

  1. I set "updatable= false" on @jakarta.persistence.Column
    But this field is missing in repository.insert(entity)

plz fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant