You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/08/05 06:54:33 UTC
[GitHub] [incubator-shardingsphere] windlikeman opened a new issue #2809:
There is a problem with using hint in in spring-boot-starter-data-jpa
windlikeman opened a new issue #2809: There is a problem with using hint in in spring-boot-starter-data-jpa
URL: https://github.com/apache/incubator-shardingsphere/issues/2809
## Question
There is a problem with using hint in in spring-boot-starter-data-jpa
sharding version:4.0.0-RC1
spring-boot-starter-data-jpa version:2.0.1
database config:
spring.shardingsphere.sharding.tables.da_hua_uid.actual-data-nodes=ds-$->{2..4}.da_hua_uid
spring.shardingsphere.sharding.tables.da_hua_uid.key-generator.column=id
spring.shardingsphere.sharding.tables.da_hua_uid.key-generator.type=SNOWFLAKE
when i test:
2019-08-05 14:38:02.235 WARN 9720 --- [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 23502
2019-08-05 14:38:02.235 ERROR 9720 --- [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: null value in column "id" violates not-null constraint
detailed:Failing row contains (null, 7778, 4, 2019-08-05 14:38:02.15, 2019-08-05 14:38:02.15, null).
can you help me? please!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services