facebook

Spring DAO generation disabled

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #260357 Reply

    redfire
    Member

    I use MyEclipse 5.0. I added Spring and Hibernate capabilities to the project .When generating hibernate support from database explorer I want to generata spring dao as well. However this option is disabled and basic DAO and JNDI dao are the only selectable options. How can i make it work.

    #260396 Reply

    Haris Peco
    Member

    Redfire,

    Please check double if your project have spring capabilities and that you choose correct project in Page 1 of hibernate wizard

    Best
    Peco

    #260596 Reply

    panickert
    Member

    I do have a similar problem – I used to be able to generate springDAO code for this project. Now it is disabled??? – See attached.

    Any ideas?

    *** Date: Tue Oct 17 16:22:04 EDT 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 GA
    Build id: 20060805-5.0-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0.1 GA
    Build id: 20060810-5.0.1-GA

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.1.0
    Build id: 20060627-0816

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse-SDK-3.2MyEclipse5.0\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    1c2c_e0
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    C:\WINDOWS\system32\javaw.exe

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #260599 Reply

    Haris Peco
    Member

    panickert,

    Have you added Spring capabilities in project ‘EP.HIB.DAO’ ? It happen me often : add spring cap. in one project and expect Spring DAO in other
    Sorry, if it is not your case and please send file .myhibernatedata and .springBeans from your project

    Best
    Peco

    #260600 Reply

    panickert
    Member

    Peco,
    Yes, this was a working project before with spring/hibernate capabilities added… Following are the info you’ve requested.

    .myhibernatedata

    #
    #Wed Jul 19 11:09:08 EDT 2006
    genBasicCompId=true
    sessionFactoryName=
    profile=
    daoSFId=LocalSessionFactory
    version=3.0
    jndiPath=
    springDaoFile=src/applicationContext.xml
    useJavaTypes=true
    keyGenerator=native
    libInstallFolder=lib
    addLibs2Project=false
    genVersionTag=true
    sessionFactoryId=LocalSessionFactory
    basePersistenceClass=
    reSettingsFile=/EP.HIB.DAO/hibernate.reveng.xml
    configFile=/EP.HIB.DAO/src/applicationContext.xml
    createConfigFile=false
    addLibs2Classpath=false

    .springBeans

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <beansProjectDescription>
    <configExtensions>
    <configExtension>xml</configExtension>
    </configExtensions>
    <configs>
    </configs>
    <configSets>
    </configSets>
    </beansProjectDescription>

    #260601 Reply

    Haris Peco
    Member

    Panickert,

    It looks correct.It is difficult to conclude.
    Please, can you send your project to support@myeclipse.com with subject ATTN: snpe

    Sorry for the inconvience caused

    Thanks
    Peco

    #260602 Reply

    panickert
    Member

    Hello Peco,

    Thanks for the quick responses… What do you mean “send my project” ? the .project file?

    zip up the whole project dir? (I might have proprietary info)

    #260603 Reply

    Brian Fernandes
    Moderator

    Panickert,

    From your .springBeans listing, it seems that your applicationContext.xml file is not registered as a spring Beans config file. Can you go to your project properties and under MyEclipse > Spring go to the Config Files tab, click Add and add that file.

    Does that fix things? Also, is your applicationContext.xml valid, does it have the spring beans DTD specified at the top?

    Best,
    Brian.

    #260606 Reply

    panickert
    Member

    What do you know? That was it! Adding applicationContext.xml to config file listing fixed it.

    Thanks a lot, I wonder how that got removed?

    You guys rock! Thanks again.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Spring DAO generation disabled

You must be logged in to post in the forum log in