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

HBX-2780: Create Interface for TableFilterWrapper #4729

Merged
merged 35 commits into from Apr 30, 2024

Conversation

koentsje
Copy link
Member

No description provided.

  - Add new utility class 'org.hibernate.tool.orm.jbt.internal.util.TypeFactoryWrapperHelper'
  - Add new test class 'org.hibernate.tool.orm.jbt.internal.util.TypeFactoryWrapperHelperTest'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Create new initial test class 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest'
  - Create new initial interface class 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper'
  - Create new factory class 'org.hibernate.tool.orm.jbt.internal.factory.TypeFactoryWrapperFactory'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetBooleanType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getBooleanType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetByteType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getByteType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetBigIntegerType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getBigIntegerType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetShortType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getShortType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetShortType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getShortType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetCalendarDateType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getCalendarDateType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetIntegerType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getIntegerType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetBigDecimalType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getBigDecimalType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetCharacterType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getCharacterType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetClassType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getClassType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetCurrencyType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getCurrencyType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetDateType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getDateType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetDoubleType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getDoubleType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetFloatType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getFloatType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetLocaleType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getLocaleType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetLongType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getLongType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetStringType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getStringType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetTextType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getTextType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
- Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetTimeType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getTimeType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetTimestampType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getTimestampType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetTimezoneType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getTimezoneType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetTrueFalseType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getTrueFalseType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetYesNoType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getYesNoType()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Refactor class 'org.hibernate.tool.orm.jbt..internal.util.TypeFactoryWrapperHelper' into 'org.hibernate.tool.orm.jbt..internal.util.TypeRegistry'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Refactor class 'org.hibernate.tool.orm.jbt..internal.util.TypeFactoryWrapperHelper' into 'org.hibernate.tool.orm.jbt..internal.util.TypeRegistry'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.internal.util.TypeRegistryTest#testGetType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.TypeRegistry#getType(String)'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Fold uses of 'org.hibernate.tool.orm.jbt.internal.util.TypeRegistry#typeRegistry().getType(String)' into 'org.hibernate.tool.orm.jbt.internal.util.TypeRegistry#getType(String)'
  - Remove unneeded method 'org.hibernate.tool.orm.jbt.internal.util.TypeRegistry#typeRegistry()'
  - Remove unneeded test 'org.hibernate.tool.orm.jbt.internal.util.TypeRegistryTest#testTypeRegistry()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Modify 'org.hibernate.tool.orm.jbt.internal.util.TypeRegistry#getType(String)' to perform lookup in BasicTypeRegistry and add the new TypeWrapper if the Type exists

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetBasicType()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getBasicType(String)'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Refactor initialization of class 'org.hibernate.tool.orm.jbt.TypeRegistry'
  - Add new test case 'org.hibernate.tool.orm.jbt.internal.util.TypeRegistryTest#testGetTypeFormats()'
  - Implement new method 'org.hibernate.tool.orm.jbt.internal.util.TypeRegistry#getTypeFormats()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add new test case 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapperTest#testGetTypeFormats()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.TypeFactoryWrapper#getTypeFormats()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
@koentsje koentsje force-pushed the HBX-2780 branch 23 times, most recently from a6f0adb to 4026cf5 Compare April 30, 2024 13:33
  - Fix build and test problems on CI:
    * Initialize 'TypeRegistry#TYPE_REGISTRY' and get rid of the static initialization
    * Perform lazy initialization on 'TypeRegistry#TYPE_FORMATS' in method 'TypeRegistry#getTypeFormats()'
    * Initialize the default Locale to a fixed one in TypeFactoryWrapperTest and in TypeRegistryTest

Signed-off-by: Koen Aers <koen.aers@gmail.com>
@koentsje koentsje merged commit b84154f into hibernate:main Apr 30, 2024
3 checks passed
@koentsje koentsje deleted the HBX-2780 branch April 30, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant