[hibernate/hibernate-orm] ba59bb: HHH-8224 unique key, foreign key, and index naming...
by GitHub
Branch: refs/heads/metamodel
Home: https://github.com/hibernate/hibernate-orm
Commit: ba59bbf11941bf632b59db9de9e854e3b840fcf0
https://github.com/hibernate/hibernate-orm/commit/ba59bbf11941bf632b59db9...
Author: Brett Meyer <brett(a)3riverdev.com>
Date: 2013-08-14 (Wed, 14 Aug 2013)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/DefaultNamingStrategy.java
M hibernate-core/src/main/java/org/hibernate/cfg/EJB3NamingStrategy.java
M hibernate-…
[View More]core/src/main/java/org/hibernate/cfg/ImprovedNamingStrategy.java
M hibernate-core/src/main/java/org/hibernate/cfg/NamingStrategy.java
M hibernate-core/src/main/java/org/hibernate/internal/util/collections/CollectionHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/Binder.java
A hibernate-core/src/main/java/org/hibernate/metamodel/internal/ConstraintNamingStrategyHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/ForeignKeyHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/HashedNameUtil.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/NaturalIdUniqueKeyHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/TableHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/global/TableProcessor.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/relational/ForeignKey.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/relational/InLineView.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/relational/Index.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/relational/Table.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/relational/TableSpecification.java
Log Message:
-----------
HHH-8224 unique key, foreign key, and index naming strategies
Commit: 8cb6f073da11be3515b88c6cdab55ac05681540e
https://github.com/hibernate/hibernate-orm/commit/8cb6f073da11be3515b88c6...
Author: Brett Meyer <brett(a)3riverdev.com>
Date: 2013-08-14 (Wed, 14 Aug 2013)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/test/annotations/namingstrategy/DummyNamingStrategy.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/namingstrategy/NamingStrategyTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/namingstrategy/Person.java
M hibernate-core/src/test/java/org/hibernate/test/util/SchemaUtil.java
Log Message:
-----------
HHH-8224 test case
Compare: https://github.com/hibernate/hibernate-orm/compare/afc7bdfebe85...8cb6f07...
[View Less]
11 years, 7 months
[hibernate/hibernate-validator] 98f82b: HV-808 Fixing Mod11 and CPF Validation Bug
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-validator
Commit: 98f82b895acf5351ce7b6fcfa34f215336e2c5a0
https://github.com/hibernate/hibernate-validator/commit/98f82b895acf5351c...
Author: Victor Rezende dos Santos <victor.rds(a)outlook.com>
Date: 2013-08-14 (Wed, 14 Aug 2013)
Changed paths:
M engine/src/main/java/org/hibernate/validator/constraints/ModCheck.java
M engine/src/main/java/org/hibernate/validator/constraints/br/CPF.java
…
[View More] M engine/src/main/java/org/hibernate/validator/internal/constraintvalidators/ModCheckValidator.java
M engine/src/main/java/org/hibernate/validator/internal/util/ModUtil.java
M engine/src/test/java/org/hibernate/validator/test/constraints/br/CPFValidatorTest.java
M engine/src/test/java/org/hibernate/validator/test/internal/util/ModUtilTest.java
Log Message:
-----------
HV-808 Fixing Mod11 and CPF Validation Bug
- ModUtil#mod11 no longer validates the check digit, only calculates the checksum result
- ModUtil#passesMod11Test: Change the way validation test is done, compares check digit with sum mod instead of checking if the Mod11 sum of all elements returns 0, this fixes when the same check digit is used for 10 and 11. Adding explicit comment about the assumption the mod11 algorithm makes
- Change the method's signatures of ModUtil#mod10 and ModUtil#passesMod11Test to use the check digit as a separate parameter
- ModCheckValidator Check digit is no longer passed on the same list with other digits of the code, but as a separate int value
- @CPF: Change exlusion patterns: Non-digit characters are now optional, Adds more exclusion patterns, any sequence of the same digit passes on the mod11 check but are considered invalid CPF numbers.
Commit: 3ace852226f0b95cdf6567312095d3f7f2091ceb
https://github.com/hibernate/hibernate-validator/commit/3ace852226f0b95cd...
Author: Victor Rezende dos Santos <victor.rds(a)outlook.com>
Date: 2013-08-14 (Wed, 14 Aug 2013)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/constraintvalidators/ModCheckValidator.java
M engine/src/main/java/org/hibernate/validator/internal/util/ModUtil.java
M engine/src/test/java/org/hibernate/validator/test/constraints/br/CPFValidatorTest.java
M engine/src/test/java/org/hibernate/validator/test/internal/constraintvalidators/ModCheckValidatorTest.java
M engine/src/test/java/org/hibernate/validator/test/internal/util/ModUtilTest.java
Log Message:
-----------
HV-808 Fix and Test Updates
Code updates from the feedback of Pull Request #263
- Removes ModUtil#passesMod11Test and ModUtil#passesMod10Test the check digit validation is now done in the ModCheckValidator#isValid
- ModCheckValidator Change the way check digit is extracted, as char instead as String, add extractDigit method for conversion
- Remove useless comments from CPFValidatorTest
- Change CPFValidatorTest, ModValidatorTest and ModUtilTest to run tests for new methods versions
Compare: https://github.com/hibernate/hibernate-validator/compare/64309188811d...3...
[View Less]
11 years, 7 months