Uploaded image for project: 'Hibernate ORM'
  1. HHH-8430

@Synchronized table names are case-sensitive for @Subselect

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Components: None
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      This works:

      @org.hibernate.annotations.Synchronize({"Item", "Bid"})
      

      This doesn't work:

      @org.hibernate.annotations.Synchronize({"ITEM", "BID"})
      

      This method in ActionQueue should perform a case-insenstive comparison:

      	private static boolean areTablesToUpdated(Iterable actions, Set tableSpaces) {
      		for ( Executable action : (Iterable<Executable>) actions ) {
      			final Serializable[] spaces = action.getPropertySpaces();
      			for ( Serializable space : spaces ) {
      				if ( tableSpaces.contains( space ) ) {
      					LOG.debugf( "Changes must be flushed to space: %s", space );
      					return true;
      				}
      			}
      		}
      		return false;
      	}
      

      See https://forum.hibernate.org/viewtopic.php?t=985811

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: