[JBoss JIRA] (JBIDE-12637) Hibernate Tools generates @SequenceGenerator with not unique name
by Rastislav Wagner (JIRA)
[ https://issues.jboss.org/browse/JBIDE-12637?page=com.atlassian.jira.plugi... ]
Rastislav Wagner closed JBIDE-12637.
------------------------------------
Verified in Devstudio 10.0.0.GA-v20160606-0425-B5526
> Hibernate Tools generates @SequenceGenerator with not unique name
> -----------------------------------------------------------------
>
> Key: JBIDE-12637
> URL: https://issues.jboss.org/browse/JBIDE-12637
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Reporter: Nicolas Bihan
> Assignee: Koen Aers
> Priority: Critical
> Labels: SequenceGenerator, hibenate, hibernate-tools, jpa
> Fix For: 4.4.0.Final
>
>
> When generating entities with EJB3 annotations with a strategy set to "sequence", Hibernate tools generates POJOs with non unique javax.persistence.SequenceGenerator name "generator". But according to the Java documentation :
> bq. String name (Required) A unique generator name that can be referenced by one or more classes to be the generator for primary key values.
> See [javadoc|http://docs.oracle.com/javaee/5/api/javax/persistence/SequenceGen...]
> Exemple of generated code with 4.0.0 Alpha1:
> {code}
> @SequenceGenerator(name = "generator", sequenceName = "S_CLIENT")
> @Id
> @GeneratedValue(strategy = SEQUENCE, generator = "generator")
> @Column(name = "CLIENT_ID", unique = true, nullable = false, precision = 22, scale = 0)
> public long getClientId() {
> return this.clientId;
> }
> {code}
> [Source code|https://github.com/hibernate/hibernate-tools/blob/master/src/java/or...] can be seen here.
> So looks like the //TODO comment is right and it should generate a unique name atribute. sequencename+"generator" would be a good name.
> It would even be better if we could define this name in reveng.xml or/and in a DelegatingReverseEngineeringStrategy class.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 10 months
[JBoss JIRA] (JBIDE-22382) Use different icons for EAP server and Red Hat Central
by Max Rydahl Andersen (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22382?page=com.atlassian.jira.plugi... ]
Max Rydahl Andersen commented on JBIDE-22382:
---------------------------------------------
marked as respin-a so we can keep track.
> Use different icons for EAP server and Red Hat Central
> ------------------------------------------------------
>
> Key: JBIDE-22382
> URL: https://issues.jboss.org/browse/JBIDE-22382
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: central, server
> Affects Versions: 4.4.0.Alpha2
> Reporter: Marián Labuda
> Priority: Minor
> Labels: respin-a
> Fix For: 4.4.0.Final
>
> Attachments: central-rhd-icon.png
>
>
> If there is an EAP server present in Servers view, workbench tool bar contains 2 same icons - Select a default server icon is same as Red Hat Central icon. We should make this explicitly different.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 10 months