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?
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
add a comment |
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
add a comment |
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
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
mysql eclipse hibernate orm hibernate-mapping
asked Mar 7 at 12:17
YahyaYahya
12
12
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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