-
Notifications
You must be signed in to change notification settings - Fork 98
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
Extend @Table with attributes to enable automatic numbering of rows and columns #116
Comments
What about the title for these index columns/rows, should that be configurable or would be the default |
I think it makes sense to be able to configure the title in these cases while using "#" as default. |
What do you think about the following:
Add an index to each row with header
Adds an index to each row with header |
That'll be great! |
Hi, Is there any specific reason you decided to implement the default header with a blank value and then to e.g. implement
instead of just providing the default value "#" in the annotation itself and then just to use
It's less verbose and you could directly see in the annotation what default value is used? Regards Niko |
Cool that you review my code! :-) But there actually is a reason, but a subtle one. The problem is that I have to distinguish whether a user has explicitly set a column header or not. In Java, I cannot set the default value to
Then I do not know any more whether the user explictly wanted the default, or whether the value was the default. The same happens with my solution when a user writes
Which I assume is unlikely. |
Thinking a bit more about this, it might not be that unlikely that a user explicitly wants an empty header. So maybe I should change the default to something like |
Well, I'm a curious guy ;) Ah, OK, i didn't see that there is the requirement to be able to distinguish between set or not that (I was just aware of the code change and then concluded that e.g. hasVerticalHeader() property was enough to determine whether something is set or not without knowing how it is actually calculated. The reason I'm pointing that out is that I've actually expected the "#" to also be included in the @table JavaDoc somewhere to know that this is used as a default value even though the annotation property default value is something different. |
Yes, you are right. I improved the JavaDoc and also changed the default so that you can now even specify |
Suggestion:
The text was updated successfully, but these errors were encountered: