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

@GenericGenerator doesn`t honor @Table schema field

    Details

    • Type: Bug
    • Status: Awaiting Response
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 4.2.2
    • Fix versions: None
    • Components: hibernate-core
    • Environment:
      Hibernate 4.2.2 , Oracle 11g 11.2.0.2.0 XE
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      @Entity
      @Table(name = "CONFIGURACAO", schema = "SEGURANCA")
      @GenericGenerator(name = "CONFIGURACAO_SQ",strategy="increment")
      public class Configuracao {

      @Id
      @GeneratedValue(generator = "CONFIGURACAO_SQ")
      @Column(name = "ID")
      private Long id;

      Like above hibernate doens`t honor schema name , generating query like

      select max(id) from CONFIGURACAO

      instead

      select max(id) from SEGURANCA.CONFIGURACAO

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: