-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 32 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: no mapping editor
PostPosted: Fri Jul 21, 2006 1:54 pm 
Newbie

Joined: Fri Jun 30, 2006 2:16 am
Posts: 4
I installed Hibernate Tools 3.2.0.beta6a

Configuration, HQL Editor, Etc work but no matter what I do I cannot get my .hbm.xml files to be recognized as Hibernate mapping files. I do not get any kind of content assist... (besides the regular XML assist)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 2:53 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
have you tried with the latest 3.2b6a ?

Any way that you can show a screenshot that includes the Error log, editor and outline ? (the quickest way )

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Same problem with JBoss IDE 1.6
PostPosted: Sat Jul 22, 2006 6:47 am 
Newbie

Joined: Tue Dec 06, 2005 8:47 am
Posts: 16
Location: London
I am having the same issue. I am using the standard JBoss 1.6 IDE and even tried to associate the reveng.xml file with the editor. I still only get the standard xml style design screen. I have just tried using the JBoss IDE 1.5 and that seems to have the editor available.
[/img]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 22, 2006 7:50 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
(repeat of my first answer) :)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 23, 2006 11:03 pm 
Beginner
Beginner

Joined: Sat Sep 23, 2006 5:44 pm
Posts: 22
Location: Seattle, WA
oops, bad post, can't delete, see next ....


Last edited by sleepwalk on Sat Sep 23, 2006 11:05 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 23, 2006 11:03 pm 
Beginner
Beginner

Joined: Sat Sep 23, 2006 5:44 pm
Posts: 22
Location: Seattle, WA
max wrote:
have you tried with the latest 3.2b6a ?

Any way that you can show a screenshot that includes the Error log, editor and outline ? (the quickest way )


I have the same problem with 3.2b7 on eclipse 3.2 with most of the callisto plugins installed. Not sure what error log is meant, but I don't see any errors .... outline shows "an outline is not available", and I have no syntax highlighting, as I do for, say, build.xml. Perhaps the plugins are fighting over editing the xml?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 3:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the error log is in the "Error log view"

does you .hbm.xml files have a hibernate overlayed icon ?

again, a screenshot of what you see would help.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 8:25 pm 
Beginner
Beginner

Joined: Sat Sep 23, 2006 5:44 pm
Posts: 22
Location: Seattle, WA
max wrote:
the error log is in the "Error log view"

does you .hbm.xml files have a hibernate overlayed icon ?

again, a screenshot of what you see would help.


Apart from a couple warnings about not having a primary key in one table (tutorial might need fixing for the email table), nothing appears in the error log no matter which way I open and close eclipse or the files (or other xml files); I do have the hibernate icons in the explorer view.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 2:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and you are opening the file with the WTP XML Editor ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 12:38 pm 
Beginner
Beginner

Joined: Sat Sep 23, 2006 5:44 pm
Posts: 22
Location: Seattle, WA
max wrote:
and you are opening the file with the WTP XML Editor ?


I don't think so. I've tried opening the files with text, xml, system, in-place, and the default editor, none of which give the desired result. With the text editor, I just have black text on white background and no context-menu options for formatting or refactoring. CTRL-SHIFT-F does nothing. Editing a build.xml file, however, works fine.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 12:42 pm 
Beginner
Beginner

Joined: Sat Sep 23, 2006 5:44 pm
Posts: 22
Location: Seattle, WA
sleepwalk wrote:
I've tried opening the files with text, xml, system, in-place, and the default editor


I don't have another option for hibernate files as I do with my build.xml, which shows an option to 'Open With -> Ant Editor'.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 1:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
then you either:

don't have a proper install of WTP (look in the error log)

don't have a standard hibernate xml file making the contenttype wrong

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 1:39 pm 
Beginner
Beginner

Joined: Sat Sep 23, 2006 5:44 pm
Posts: 22
Location: Seattle, WA
max wrote:
then you either:

don't have a proper install of WTP (look in the error log)

don't have a standard hibernate xml file making the contenttype wrong


OK, I'm working on making sure my WTP is up to date. Can you point me at the canonical content type declarations, I'm just using the ones straight out of the manual, and they seem to function just fine. Is there a version bump I missed?

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
       
<hibernate-mapping>

    <class name="events.Person" table="PERSON">
        <id name="id" column="PERSON_ID">
            <generator class="native"/>
        </id>
        <property name="age"/>
        <property name="firstname"/>
        <property name="lastname"/>
       
       <set name="events" table="PERSON_EVENT">
         <key column="PERSON_ID"/>
         <many-to-many column="EVENT_ID" class="events.Event"/>
      </set>

      <set name="emailAddresses" table="PERSON_EMAIL_ADDR">
         <key column="PERSON_ID"/>
         <element column="EMAIL_ADDR" type="string" />
      </set>
   </class>
</hibernate-mapping>


Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
        <property name="hibernate.connection.password">mAckerEl92chAi34</property>
        <property name="hibernate.connection.url">jdbc:mysql://192.168.1.1/test</property>
        <property name="hibernate.connection.username">test</property>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
       
        <!-- JDBC connection pool (use the built-in) -->
        <property name="connection.pool_size">1</property>

        <!-- Enable Hibernate's automatic session context management -->
        <property name="current_session_context_class">thread</property>

        <!-- Disable the second-level cache  -->
        <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

        <!-- Echo all executed SQL to stdout -->
        <property name="show_sql">true</property>

        <!-- Drop and re-create the database schema on startup -->
        <property name="hbm2ddl.auto">create</property>

        <mapping resource="events/Event.hbm.xml"/>
      <mapping resource="events/Person.hbm.xml"/>
    </session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 5:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
those file should work.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 12:10 pm 
Beginner
Beginner

Joined: Sat Sep 23, 2006 5:44 pm
Posts: 22
Location: Seattle, WA
max wrote:
those file should work.


OK, I've reinstalled eclipse-callisto from scratch, including most callisto and eclipse new features (all except C/C++ dev), with minor updates (and also javasvn and subclipse plugins). Installing Tools from zipfile [without and with overwriting] failed completely; not even any overlay icons. I then installed the same version 3.2b7 again from the update site, and then also installed the jboss ide plugin from the update site. No joy: I can get the overlay icons after the update site install of Tools but no mapping/config file editor even after installing the jboss ide plugin.

I saved my installation after callisto initial install (with extra plugins, before updating), and after 'equivalent' updating, and after 'minor' updating, so going back will be easier for testing. The only thing that I couldn't update beyond the initial install was gmf, which has a 404 problem with the update site.

Is there an install procedure beyond what's in the manual or another required plugin I'm missing? I've already started eclipse with and without '-clean'.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 32 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.