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

Update ShardingKey.java #396

Closed
wants to merge 1 commit into from
Closed

Update ShardingKey.java #396

wants to merge 1 commit into from

Conversation

liolay
Copy link

@liolay liolay commented Oct 3, 2017

modify default equals() and hashCode() method for reason:
when use HintManager to force routing(HintManager.addDatabaseShardingValue("t_order","user_id",1);
HintManager.addTableShardingValue("t_order","order_id",1);),
HintManager.getTableShardingValue() and HintManager.getDatabaseShardingValue() can't get correct ShardingValue because of case-sensitive at SQL and logicTable/shardingColumn in HintManager.addDatabaseShardingValue,
that's inconvenience.

modify default equals() and hashCode() method for reason:
when use `HintManager` to force routing(HintManager.addDatabaseShardingValue("t_order","user_id",1);),
`HintManager.getTableShardingValue()` and `HintManager.getDatabaseShardingValue()` can't get correct `ShardingValue` because of case-sensitive between SQL and  logicTable/shardingColumn in `HintManager.addDatabaseShardingValue`,
that's inconvenience。
@terrymanu
Copy link
Member

terrymanu commented Oct 5, 2017

请详细阅读http://shardingjdbc.io/docs/00-overview/contribution/
再提交pr。请重点关注以下几点:

  1. 请于当前开发分支提交pr,master为最后一个发布的tag的版本,不接受pr
  2. 请将checkstyle等代码风格调整至没有警告的状态
  3. 请添加测试用例

@terrymanu terrymanu closed this Oct 6, 2017
@terrymanu
Copy link
Member

I create a issue for that:
#398

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

Successfully merging this pull request may close these issues.

2 participants