Hibernate and Mysql why this tables are not being created2019 Community Moderator ElectionShould I use the datetime or timestamp data type in MySQL?What are the possible values of the #Hibernate hbm2ddl.auto configuration and what do they doHow to get a list of MySQL user accountsWrong ordering in generated table in jpawant to add two different tables(classes) in one hibernate criteriaHibernate update table B after table A is updatedWhat's the difference between JPA and Hibernate?Why shouldn't I use mysql_* functions in PHP?How to import an SQL file using the command line in MySQL?Hibernate : Why FetchType.LAZY-annotated collection property eagerly loading?

Pinhole Camera with Instant Film

What options are left, if Britain cannot decide?

Why is "das Weib" grammatically neuter?

How to simplify this time periods definition interface?

Does the statement `int val = (++i > ++j) ? ++i : ++j;` invoke undefined behavior?

Why did it take so long to abandon sail after steamships were demonstrated?

Have researchers managed to "reverse time"? If so, what does that mean for physics?

Life insurance that covers only simultaneous/dual deaths

What does it mean to make a bootable LiveUSB?

Replacing Windows 7 security updates with anti-virus?

Brexit - No Deal Rejection

How do I hide Chekhov's Gun?

RegionDifference for Cylinder and Cuboid

Why do passenger jet manufacturers design their planes with stall prevention systems?

Bastion server: use TCP forwarding VS placing private key on server

Fill color and outline color with the same value

How to generate globally unique ids for different tables of the same database?

What is a good source for large tables on the properties of water?

Why must traveling waves have the same amplitude to form a standing wave?

Does this AnyDice function accurately calculate the number of ogres you make unconcious with three 4th-level castings of Sleep?

How to make healing in an exploration game interesting

Theorems like the Lovász Local Lemma?

Can the damage from a Talisman of Pure Good (or Ultimate Evil) be non-lethal?

How to deal with taxi scam when on vacation?



Hibernate and Mysql why this tables are not being created



2019 Community Moderator ElectionShould I use the datetime or timestamp data type in MySQL?What are the possible values of the #Hibernate hbm2ddl.auto configuration and what do they doHow to get a list of MySQL user accountsWrong ordering in generated table in jpawant to add two different tables(classes) in one hibernate criteriaHibernate update table B after table A is updatedWhat's the difference between JPA and Hibernate?Why shouldn't I use mysql_* functions in PHP?How to import an SQL file using the command line in MySQL?Hibernate : Why FetchType.LAZY-annotated collection property eagerly loading?










0















i got stuck with Hibernate because alle Tables has been created without this strange Table ,
i has beeing searching before 2 days ago
please guys just take look at the class



@SuppressWarnings("serial")
@Entity
@Table(name = "delegation_rule")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "main_type", discriminatorType = DiscriminatorType.STRING)
@DiscriminatorValue(value = DelegationRuleTypeString.SIMPLE)
public class DelegationRule implements IIdEntity
// --------------- variables -------------------- //

@Id
@Column(unique = true, nullable = false, name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)

private long id;

@Column(name = "main_type", insertable = false, updatable = false)
private String mainType;

@Column(name = "_index_")
private int _index_;

/** the type of the rule - defines the action **/
@Enumerated(EnumType.STRING)
@Column(name = "_type_")
private DelegationRuleType _type_;

@Column(name = "fall_through")
private boolean fallThrough;

// just in case we need some reserved values for later db changes
@Column(name = "reserved_boolean")
private boolean reservedBoolean;

@Column(name = "reserved_integer")
private int reservedInteger;

@Column(name = "reserved_long")
private long reservedLong;

@Column(name = "reserved_string", columnDefinition = "TEXT")
private String reservedString;

@Column(name = "reserved_string_2", columnDefinition = "TEXT")
private String reservedString2;
// end reserved values

/** a short description of this rule to help the users */
@Column(name = "_description_", columnDefinition = "TEXT")
private String _description_;

/** the @link DelegationPath that this Rule belongs to */
@ManyToOne(optional = true, fetch = FetchType.EAGER)
@JoinColumn(name = "delegation_path_id")
private DelegationPath delegationPath;

// the delegate filter
@ManyToOne
@JoinColumn(name = "employee_attribute_definition")
private AttributeDefinition employeeAttributeDefinition;

@Enumerated(EnumType.STRING)
@Column(name = "employee_operation")
private DelegationConditionOperation employeeOperation;

@Column(name = "employee_filter_value", columnDefinition = "TEXT")
private String employeeFilterValue;

// --------------- constructors -------------------- //

public DelegationRule()
// mostly for hibernate


public DelegationRule(DelegationRuleType type, String description)
this._type_ = type;
this._description_ = description;


// ---------------- getters and setters -------------------- //

public String getMainType()
return mainType;


public void setMainType(String mainType)
this.mainType = mainType;


public long getId()
return id;


public void setId(long id)
this.id = id;


public DelegationRuleType getType()
return _type_;


public void setType(DelegationRuleType type)
this._type_ = type;


public String getDescription()
return _description_;


public void setDescription(String description)
this._description_ = description;


public DelegationPath getDelegationPath()
return delegationPath;


public void setDelegationPath(DelegationPath delegationPath)
this.delegationPath = delegationPath;


public int getIndex()
return _index_;


public void setIndex(int index)
this._index_ = index;


public AttributeDefinition getEmployeeAttributeDefinition()
return employeeAttributeDefinition;


public void setEmployeeAttributeDefinition(AttributeDefinition employeeAttributeDefinition)
this.employeeAttributeDefinition = employeeAttributeDefinition;


public DelegationConditionOperation getEmployeeOperation()
return employeeOperation;


public void setEmployeeOperation(DelegationConditionOperation employeeOperation)
this.employeeOperation = employeeOperation;


public String getEmployeeFilterValue()
return employeeFilterValue;


public void setEmployeeFilterValue(String employeeFilterValue)
this.employeeFilterValue = employeeFilterValue;


public boolean isFallThroughEnabled()
return fallThrough;


public void setFallThrough(boolean fallThrough)
this.fallThrough = fallThrough;


public void copyEmployeeFilter(DelegationRule original)
employeeAttributeDefinition = original.employeeAttributeDefinition;
employeeOperation = original.employeeOperation;
employeeFilterValue = original.employeeFilterValue;




i canot do anything more if the tables are not being created
i tried every things possible to change



Where is the Problem in this Mapping ?
i have hibernate 5.4.1 and Mysql 8










share|improve this question


























    0















    i got stuck with Hibernate because alle Tables has been created without this strange Table ,
    i has beeing searching before 2 days ago
    please guys just take look at the class



    @SuppressWarnings("serial")
    @Entity
    @Table(name = "delegation_rule")
    @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
    @DiscriminatorColumn(name = "main_type", discriminatorType = DiscriminatorType.STRING)
    @DiscriminatorValue(value = DelegationRuleTypeString.SIMPLE)
    public class DelegationRule implements IIdEntity
    // --------------- variables -------------------- //

    @Id
    @Column(unique = true, nullable = false, name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)

    private long id;

    @Column(name = "main_type", insertable = false, updatable = false)
    private String mainType;

    @Column(name = "_index_")
    private int _index_;

    /** the type of the rule - defines the action **/
    @Enumerated(EnumType.STRING)
    @Column(name = "_type_")
    private DelegationRuleType _type_;

    @Column(name = "fall_through")
    private boolean fallThrough;

    // just in case we need some reserved values for later db changes
    @Column(name = "reserved_boolean")
    private boolean reservedBoolean;

    @Column(name = "reserved_integer")
    private int reservedInteger;

    @Column(name = "reserved_long")
    private long reservedLong;

    @Column(name = "reserved_string", columnDefinition = "TEXT")
    private String reservedString;

    @Column(name = "reserved_string_2", columnDefinition = "TEXT")
    private String reservedString2;
    // end reserved values

    /** a short description of this rule to help the users */
    @Column(name = "_description_", columnDefinition = "TEXT")
    private String _description_;

    /** the @link DelegationPath that this Rule belongs to */
    @ManyToOne(optional = true, fetch = FetchType.EAGER)
    @JoinColumn(name = "delegation_path_id")
    private DelegationPath delegationPath;

    // the delegate filter
    @ManyToOne
    @JoinColumn(name = "employee_attribute_definition")
    private AttributeDefinition employeeAttributeDefinition;

    @Enumerated(EnumType.STRING)
    @Column(name = "employee_operation")
    private DelegationConditionOperation employeeOperation;

    @Column(name = "employee_filter_value", columnDefinition = "TEXT")
    private String employeeFilterValue;

    // --------------- constructors -------------------- //

    public DelegationRule()
    // mostly for hibernate


    public DelegationRule(DelegationRuleType type, String description)
    this._type_ = type;
    this._description_ = description;


    // ---------------- getters and setters -------------------- //

    public String getMainType()
    return mainType;


    public void setMainType(String mainType)
    this.mainType = mainType;


    public long getId()
    return id;


    public void setId(long id)
    this.id = id;


    public DelegationRuleType getType()
    return _type_;


    public void setType(DelegationRuleType type)
    this._type_ = type;


    public String getDescription()
    return _description_;


    public void setDescription(String description)
    this._description_ = description;


    public DelegationPath getDelegationPath()
    return delegationPath;


    public void setDelegationPath(DelegationPath delegationPath)
    this.delegationPath = delegationPath;


    public int getIndex()
    return _index_;


    public void setIndex(int index)
    this._index_ = index;


    public AttributeDefinition getEmployeeAttributeDefinition()
    return employeeAttributeDefinition;


    public void setEmployeeAttributeDefinition(AttributeDefinition employeeAttributeDefinition)
    this.employeeAttributeDefinition = employeeAttributeDefinition;


    public DelegationConditionOperation getEmployeeOperation()
    return employeeOperation;


    public void setEmployeeOperation(DelegationConditionOperation employeeOperation)
    this.employeeOperation = employeeOperation;


    public String getEmployeeFilterValue()
    return employeeFilterValue;


    public void setEmployeeFilterValue(String employeeFilterValue)
    this.employeeFilterValue = employeeFilterValue;


    public boolean isFallThroughEnabled()
    return fallThrough;


    public void setFallThrough(boolean fallThrough)
    this.fallThrough = fallThrough;


    public void copyEmployeeFilter(DelegationRule original)
    employeeAttributeDefinition = original.employeeAttributeDefinition;
    employeeOperation = original.employeeOperation;
    employeeFilterValue = original.employeeFilterValue;




    i canot do anything more if the tables are not being created
    i tried every things possible to change



    Where is the Problem in this Mapping ?
    i have hibernate 5.4.1 and Mysql 8










    share|improve this question
























      0












      0








      0








      i got stuck with Hibernate because alle Tables has been created without this strange Table ,
      i has beeing searching before 2 days ago
      please guys just take look at the class



      @SuppressWarnings("serial")
      @Entity
      @Table(name = "delegation_rule")
      @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
      @DiscriminatorColumn(name = "main_type", discriminatorType = DiscriminatorType.STRING)
      @DiscriminatorValue(value = DelegationRuleTypeString.SIMPLE)
      public class DelegationRule implements IIdEntity
      // --------------- variables -------------------- //

      @Id
      @Column(unique = true, nullable = false, name = "id")
      @GeneratedValue(strategy = GenerationType.IDENTITY)

      private long id;

      @Column(name = "main_type", insertable = false, updatable = false)
      private String mainType;

      @Column(name = "_index_")
      private int _index_;

      /** the type of the rule - defines the action **/
      @Enumerated(EnumType.STRING)
      @Column(name = "_type_")
      private DelegationRuleType _type_;

      @Column(name = "fall_through")
      private boolean fallThrough;

      // just in case we need some reserved values for later db changes
      @Column(name = "reserved_boolean")
      private boolean reservedBoolean;

      @Column(name = "reserved_integer")
      private int reservedInteger;

      @Column(name = "reserved_long")
      private long reservedLong;

      @Column(name = "reserved_string", columnDefinition = "TEXT")
      private String reservedString;

      @Column(name = "reserved_string_2", columnDefinition = "TEXT")
      private String reservedString2;
      // end reserved values

      /** a short description of this rule to help the users */
      @Column(name = "_description_", columnDefinition = "TEXT")
      private String _description_;

      /** the @link DelegationPath that this Rule belongs to */
      @ManyToOne(optional = true, fetch = FetchType.EAGER)
      @JoinColumn(name = "delegation_path_id")
      private DelegationPath delegationPath;

      // the delegate filter
      @ManyToOne
      @JoinColumn(name = "employee_attribute_definition")
      private AttributeDefinition employeeAttributeDefinition;

      @Enumerated(EnumType.STRING)
      @Column(name = "employee_operation")
      private DelegationConditionOperation employeeOperation;

      @Column(name = "employee_filter_value", columnDefinition = "TEXT")
      private String employeeFilterValue;

      // --------------- constructors -------------------- //

      public DelegationRule()
      // mostly for hibernate


      public DelegationRule(DelegationRuleType type, String description)
      this._type_ = type;
      this._description_ = description;


      // ---------------- getters and setters -------------------- //

      public String getMainType()
      return mainType;


      public void setMainType(String mainType)
      this.mainType = mainType;


      public long getId()
      return id;


      public void setId(long id)
      this.id = id;


      public DelegationRuleType getType()
      return _type_;


      public void setType(DelegationRuleType type)
      this._type_ = type;


      public String getDescription()
      return _description_;


      public void setDescription(String description)
      this._description_ = description;


      public DelegationPath getDelegationPath()
      return delegationPath;


      public void setDelegationPath(DelegationPath delegationPath)
      this.delegationPath = delegationPath;


      public int getIndex()
      return _index_;


      public void setIndex(int index)
      this._index_ = index;


      public AttributeDefinition getEmployeeAttributeDefinition()
      return employeeAttributeDefinition;


      public void setEmployeeAttributeDefinition(AttributeDefinition employeeAttributeDefinition)
      this.employeeAttributeDefinition = employeeAttributeDefinition;


      public DelegationConditionOperation getEmployeeOperation()
      return employeeOperation;


      public void setEmployeeOperation(DelegationConditionOperation employeeOperation)
      this.employeeOperation = employeeOperation;


      public String getEmployeeFilterValue()
      return employeeFilterValue;


      public void setEmployeeFilterValue(String employeeFilterValue)
      this.employeeFilterValue = employeeFilterValue;


      public boolean isFallThroughEnabled()
      return fallThrough;


      public void setFallThrough(boolean fallThrough)
      this.fallThrough = fallThrough;


      public void copyEmployeeFilter(DelegationRule original)
      employeeAttributeDefinition = original.employeeAttributeDefinition;
      employeeOperation = original.employeeOperation;
      employeeFilterValue = original.employeeFilterValue;




      i canot do anything more if the tables are not being created
      i tried every things possible to change



      Where is the Problem in this Mapping ?
      i have hibernate 5.4.1 and Mysql 8










      share|improve this question














      i got stuck with Hibernate because alle Tables has been created without this strange Table ,
      i has beeing searching before 2 days ago
      please guys just take look at the class



      @SuppressWarnings("serial")
      @Entity
      @Table(name = "delegation_rule")
      @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
      @DiscriminatorColumn(name = "main_type", discriminatorType = DiscriminatorType.STRING)
      @DiscriminatorValue(value = DelegationRuleTypeString.SIMPLE)
      public class DelegationRule implements IIdEntity
      // --------------- variables -------------------- //

      @Id
      @Column(unique = true, nullable = false, name = "id")
      @GeneratedValue(strategy = GenerationType.IDENTITY)

      private long id;

      @Column(name = "main_type", insertable = false, updatable = false)
      private String mainType;

      @Column(name = "_index_")
      private int _index_;

      /** the type of the rule - defines the action **/
      @Enumerated(EnumType.STRING)
      @Column(name = "_type_")
      private DelegationRuleType _type_;

      @Column(name = "fall_through")
      private boolean fallThrough;

      // just in case we need some reserved values for later db changes
      @Column(name = "reserved_boolean")
      private boolean reservedBoolean;

      @Column(name = "reserved_integer")
      private int reservedInteger;

      @Column(name = "reserved_long")
      private long reservedLong;

      @Column(name = "reserved_string", columnDefinition = "TEXT")
      private String reservedString;

      @Column(name = "reserved_string_2", columnDefinition = "TEXT")
      private String reservedString2;
      // end reserved values

      /** a short description of this rule to help the users */
      @Column(name = "_description_", columnDefinition = "TEXT")
      private String _description_;

      /** the @link DelegationPath that this Rule belongs to */
      @ManyToOne(optional = true, fetch = FetchType.EAGER)
      @JoinColumn(name = "delegation_path_id")
      private DelegationPath delegationPath;

      // the delegate filter
      @ManyToOne
      @JoinColumn(name = "employee_attribute_definition")
      private AttributeDefinition employeeAttributeDefinition;

      @Enumerated(EnumType.STRING)
      @Column(name = "employee_operation")
      private DelegationConditionOperation employeeOperation;

      @Column(name = "employee_filter_value", columnDefinition = "TEXT")
      private String employeeFilterValue;

      // --------------- constructors -------------------- //

      public DelegationRule()
      // mostly for hibernate


      public DelegationRule(DelegationRuleType type, String description)
      this._type_ = type;
      this._description_ = description;


      // ---------------- getters and setters -------------------- //

      public String getMainType()
      return mainType;


      public void setMainType(String mainType)
      this.mainType = mainType;


      public long getId()
      return id;


      public void setId(long id)
      this.id = id;


      public DelegationRuleType getType()
      return _type_;


      public void setType(DelegationRuleType type)
      this._type_ = type;


      public String getDescription()
      return _description_;


      public void setDescription(String description)
      this._description_ = description;


      public DelegationPath getDelegationPath()
      return delegationPath;


      public void setDelegationPath(DelegationPath delegationPath)
      this.delegationPath = delegationPath;


      public int getIndex()
      return _index_;


      public void setIndex(int index)
      this._index_ = index;


      public AttributeDefinition getEmployeeAttributeDefinition()
      return employeeAttributeDefinition;


      public void setEmployeeAttributeDefinition(AttributeDefinition employeeAttributeDefinition)
      this.employeeAttributeDefinition = employeeAttributeDefinition;


      public DelegationConditionOperation getEmployeeOperation()
      return employeeOperation;


      public void setEmployeeOperation(DelegationConditionOperation employeeOperation)
      this.employeeOperation = employeeOperation;


      public String getEmployeeFilterValue()
      return employeeFilterValue;


      public void setEmployeeFilterValue(String employeeFilterValue)
      this.employeeFilterValue = employeeFilterValue;


      public boolean isFallThroughEnabled()
      return fallThrough;


      public void setFallThrough(boolean fallThrough)
      this.fallThrough = fallThrough;


      public void copyEmployeeFilter(DelegationRule original)
      employeeAttributeDefinition = original.employeeAttributeDefinition;
      employeeOperation = original.employeeOperation;
      employeeFilterValue = original.employeeFilterValue;




      i canot do anything more if the tables are not being created
      i tried every things possible to change



      Where is the Problem in this Mapping ?
      i have hibernate 5.4.1 and Mysql 8







      mysql eclipse hibernate orm hibernate-mapping






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 12:17









      YahyaYahya

      12




      12






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55043604%2fhibernate-and-mysql-why-this-tables-are-not-being-created%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55043604%2fhibernate-and-mysql-why-this-tables-are-not-being-created%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

          Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

          How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page