-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support multiple tables under one entity #32
Comments
Did you try dynamic entities ( |
Dynamic hard to use. I propose something like this #33 |
Instead of plain table name, it would be better to pass the whole |
Supporting custom NamingStrategy would be more complex, we'll have to have same-entity table with essentially different Schemas (because column names would be different for different invocations of BaseDb.table(...)). Just supplying a custom table name would be much simpler, I think. In addition, the NamingStrategy's setName(JavaField) method is just a bad bad influence. We plan to make JavaField.name immutable (eventually) but adding new NamingStrategy use cases and possibly new implementations - does not help that goal. |
We are using custom The problem with that method is that it must be called before any other code that will query Passing the I don't get the point about "bad bad setName(JavaField)". There should be a way to override column names, and it could provide a better api than |
🎉 We've introduced basic table name changing functionality in v2.6.5! It is already on Maven Central. Happy New Year! Happy new YOJ! 🎄 |
We need a possibility to work with couple tables under one Entity.
The most convenient way for us - create table with something like tableName by
Tx.Current.get().getRepositoryTransaction().table(entityCls, tableName)
In this case we have to think at least about:
The text was updated successfully, but these errors were encountered: