-
Notifications
You must be signed in to change notification settings - Fork 56
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
Custom JDBC table names naming strategy #80
Comments
Have you tried steps described here? |
@lpandzic yes I was trying this, but I can't do what I need. As I understand NamingStrategy interface allows to customize generated Q-classes (e.g. change default alias table name, etc.). But I need to change table real name (from database).
NamingStrategy class is not used here, so I'd like to redefine this getTableName method in my subclass, but I encounter problems described in my earlier comment. |
You are right, I've reverted to original proposal to make CustomExtendedTypeFactory public. |
In my Spring Data JDBC project I have custom NamingStrategy (predefined prefix is added to entity name):
I want to have the same table names generated by AnnotationProcessor in Q-classes.
What is recommended way to adjust it in AnnotationProcessor?
It seems that enough should be:
But it turns out it is impossible due to CustomExtendedTypeFactory class visibility issue. What is the reason this class is not an public class?
The text was updated successfully, but these errors were encountered: