[JBoss JIRA] (JBIDE-26259) Clicking the HTML5 Project in central does nothing
by Jeff MAURY (Jira)
[ https://issues.jboss.org/browse/JBIDE-26259?page=com.atlassian.jira.plugi... ]
Jeff MAURY updated JBIDE-26259:
-------------------------------
Fix Version/s: 4.11.x
> Clicking the HTML5 Project in central does nothing
> --------------------------------------------------
>
> Key: JBIDE-26259
> URL: https://issues.jboss.org/browse/JBIDE-26259
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: central
> Affects Versions: 4.9.0.AM1
> Reporter: Martin Malina
> Assignee: Dmitrii Bocharov
> Priority: Minor
> Fix For: 4.11.x
>
> Attachments: Screenshot from 2018-09-06 16-14-59.png, screenshot-1.png
>
>
> In order to test the PR for JBIDE-26256 I installed JBT into Eclipse Photon. Now I wanted to create the HTML5 Project from Central. But when I click it, it only displays the Operation in progress window for a moment and then it disappears and nothing happens. The same applies for the Java EE Web Project. Other projects from Central work. I tried opening and closing Central and even restarting Eclipse, neither of those helped. Note that this worked ok in devstudio. I only experienced this today in Eclipse Photon + JBT 4.9.0.AM1 abridged.
> I'm on Mac and I installed JBT from http://download.jboss.org/jbosstools/photon/staging/updates/ which currently contains the 4.9.0.AM1 bits.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months
[JBoss JIRA] (JBIDE-26458) Import Entities from DB with ManyToMany relationships doesn't manage mappedBy
by Jeff MAURY (Jira)
[ https://issues.jboss.org/browse/JBIDE-26458?page=com.atlassian.jira.plugi... ]
Jeff MAURY updated JBIDE-26458:
-------------------------------
Fix Version/s: 4.11.0.AM1
> Import Entities from DB with ManyToMany relationships doesn't manage mappedBy
> -----------------------------------------------------------------------------
>
> Key: JBIDE-26458
> URL: https://issues.jboss.org/browse/JBIDE-26458
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Affects Versions: 4.6.0.Final
> Environment: Eclipse: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200
> DBMS: Sql Anywhere 17.0.9.4857
> Annotations jdk 1.5+
> Hibernate Version 5.2
> Reporter: Matt B
> Priority: Major
> Fix For: 4.11.0.AM1
>
>
> Import from entities tool does not correctly handle the bidirectional ManyToMany relationships because in some cases it does not define mappedBy on one side.
> example:
> {code:java}
> public class SecGroup implements java.io.Serializable {
> ....
> @ManyToMany(fetch = FetchType.LAZY)
> @JoinTable(name = "SecGroupUser", schema = "dbm", joinColumns = {
> @JoinColumn(name = "GroupId", nullable = false, updatable = false) }, inverseJoinColumns = {
> @JoinColumn(name = "UserId", nullable = false, updatable = false) })
> public Set<SsUsers> getSsUserses() {
> return this.ssUserses;
> }
> ....
> }
> public class SsUsers implements java.io.Serializable {
> ...
> @ManyToMany(fetch = FetchType.LAZY)
> @JoinTable(name = "SecGroupUser", schema = "dbm", joinColumns = {
> @JoinColumn(name = "UserId", nullable = false, updatable = false) }, inverseJoinColumns = {
> @JoinColumn(name = "GroupId", nullable = false, updatable = false) })
> public Set<SecGroup> getSecGroups() {
> return this.secGroups;
> }
> ...
> }
> {code}
> It must be for example
> {code:java}
> public class SecGroup implements java.io.Serializable {
> ....
> @ManyToMany(fetch = FetchType.LAZY, mappedBy = "secGroups")
> public Set<SsUsers> getSsUserses() {
> return this.ssUserses;
> }
> ....
> }
> public class SsUsers implements java.io.Serializable {
> ...
> @ManyToMany(fetch = FetchType.LAZY)
> @JoinTable(name = "SecGroupUser", schema = "dbm", joinColumns = {
> @JoinColumn(name = "UserId", nullable = false, updatable = false) }, inverseJoinColumns = {
> @JoinColumn(name = "GroupId", nullable = false, updatable = false) })
> public Set<SecGroup> getSecGroups() {
> return this.secGroups;
> }
> ...
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months