[Hibernate-JIRA] Closed: (HBX-377) Can't save HQL Scratchpad
by Max Rydahl Andersen (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-377?page=all ]
Max Rydahl Andersen closed HBX-377:
-----------------------------------
Fix Version: 3.2beta7
(was: 3.2LATER)
Resolution: Fixed
the * now reflect the correct state and seems to work as expected.
> Can't save HQL Scratchpad
> -------------------------
>
> Key: HBX-377
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-377
> Project: Hibernate Tools
> Type: Bug
> Components: consoleconfiguration
> Versions: 3.1alpha5
> Environment: Windows XP, Eclipse 3.1
> Reporter: Dan Bradley
> Priority: Minor
> Fix For: 3.2beta7
>
>
> There is no way to save a non-empty HQL Scratchpad or otherwise mark it non-dirty. To reproduce:
> - Open a scratchpad window, it's non-dirty.
> - Enter anything into it, it's now dirty, as shown by the asterisk in front of the name on its tab.
> - Try to save it, it doesn't save, and its dirty state does not change.
> - Many Eclipse tasks will now ask you to save it before proceeding
> - Try to close it, Eclipse prompts you to save. Say no and the editor closes. But say yes and it also closes also without saving.
> More broadly, I'm not sure about the UI approach. What does it mean to save a scratchpad? Do I have to save it to a file? It's a scratchpad after all, not something I want to keep around. But I do want multiple scratchpads to be available. If I save it and it uses some hidden temporary file, that seems like an abuse of the Eclipse editor window. Maybe the scratchpad should be an Eclipse view that can be embedded in the Console Perspective, and which doesn't track a dirty/non-dirty state?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
18 years, 3 months
[Hibernate-JIRA] Closed: (HBX-599) Cannot export DDL from reverse engineered EJB3 File
by Max Rydahl Andersen (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-599?page=all ]
Max Rydahl Andersen closed HBX-599:
-----------------------------------
Resolution: Duplicate
> Cannot export DDL from reverse engineered EJB3 File
> ---------------------------------------------------
>
> Key: HBX-599
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-599
> Project: Hibernate Tools
> Type: Bug
> Versions: 3.1beta4
> Reporter: Markus Junginger
> Priority: Minor
>
>
> FIrst, I created an EJB3 Java classes using:
> <hibernatetool >
> <jdbcconfiguration configurationfile="src/hibernate.cfg.xml" revengfile="hibernate.reveng.xml" packagename="de.unilog.ejb3"/>
> <hbm2java destdir="src-ejb3" ejb3="true"/>
> <hbm2cfgxml destdir="src-ejb3" ejb3="true" />
> </hibernatetool>
> Then, I tried to let Hibernate Tools parse it's own output to generate DDL:
> <hibernatetool>
> <annotationconfiguration configurationfile="src-ejb3/hibernate.cfg.xml" />
> <hbm2ddl update="true" export="true" outputfilename="demo.ddl" delimiter=";" destdir="."/>
> </hibernatetool>
> However, I got the following error:
> BUILD FAILED
> C:\Daten\Projekte\hibernate-tools\build2.xml:4: org.hibernate.AnnotationException: Collection has neither generic type or OneToMany.targetEntity() defined: de.unilog.ejb3.Kunde.bestellungs
> --
> PS.: The generated Java file:
> package de.unilog.ejb3;
> // Generated 15.02.2006 09:53:14 by Hibernate Tools 3.1.0.beta4
> import java.util.HashSet;
> import java.util.Set;
> import javax.persistence.CascadeType;
> import javax.persistence.Column;
> import javax.persistence.Entity;
> import javax.persistence.FetchType;
> import javax.persistence.Id;
> import javax.persistence.OneToMany;
> import javax.persistence.Table;
> /**
> * Kunde generated by hbm2java
> */
> @Entity
> @Table(name="KUNDE"
> , uniqueConstraints = { }
> )
> public class Kunde implements java.io.Serializable {
> // Fields
> private int kundeId;
> private String name;
> private Set bestellungs = new HashSet(0);
> // Constructors
> /** default constructor */
> public Kunde() {
> }
> /** minimal constructor */
> public Kunde(int kundeId) {
> this.kundeId = kundeId;
> }
>
> /** full constructor */
> public Kunde(int kundeId, String name, Set bestellungs) {
> this.kundeId = kundeId;
> this.name = name;
> this.bestellungs = bestellungs;
> }
>
>
> // Property accessors
> @Id
> @Column(name="KUNDE_ID", unique=true, nullable=false, insertable=true, updatable=true)
> public int getKundeId() {
> return this.kundeId;
> }
>
> public void setKundeId(int kundeId) {
> this.kundeId = kundeId;
> }
> @Column(name="NAME", unique=false, nullable=true, insertable=true, updatable=true, length=99)
> public String getName() {
> return this.name;
> }
>
> public void setName(String name) {
> this.name = name;
> }
> @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="kunde")
> public Set getBestellungs() {
> return this.bestellungs;
> }
>
> public void setBestellungs(Set bestellungs) {
> this.bestellungs = bestellungs;
> }
>
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
18 years, 3 months
[Hibernate-JIRA] Closed: (HBX-569) ReverseEngineeringStrategy doesn't observe destination package
by Max Rydahl Andersen (JIRA)
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-569?page=all ]
Max Rydahl Andersen closed HBX-569:
-----------------------------------
Fix Version: 3.2beta7
Resolution: Fixed
strategies now get those settings via ReverseEngineeringSettings
> ReverseEngineeringStrategy doesn't observe destination package
> --------------------------------------------------------------
>
> Key: HBX-569
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-569
> Project: Hibernate Tools
> Type: Bug
> Components: reverse-engineer
> Versions: 3.1beta4
> Environment: Eclipse 3.1.2, JDK 1.5.0_01, SQL Server 2005, JTDS JDBC Driver
> Reporter: Matt Read
> Priority: Minor
> Fix For: 3.2beta7
>
>
> I have successfully used the Hibernate Code Generation part of the plugin to generate .hbm.xml files and POJO Java classes from my JDBC Connection. The code generation configuration has a target package name of com.matt.
> I then implemented a ReverseEngineering Strategy as shown below. The destination package is ignored and both .java and .hbm.xml files are put in the directory specified as "output directory".
> Should I be explicitly coding the package name into my ReverseEngineeringStrategy implementation or is their a utility to allow me to access the target package setting?
> public class InsuranceLedgerStrategy extends DelegatingReverseEngineeringStrategy {
> public InsuranceLedgerStrategy(ReverseEngineeringStrategy delegate) {
> super(delegate);
> }
> public String tableToClassName(TableIdentifier table) {
>
> return table.getName().substring(3);
>
> }
> }
> Thanks,
> Matt.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
18 years, 3 months