- This topic has 8 replies, 4 voices, and was last updated 18 years ago by panickert.
-
AuthorPosts
-
redfireMemberI 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.
Haris PecoMemberRedfire,
Please check double if your project have spring capabilities and that you choose correct project in Page 1 of hibernate wizard
Best
Peco
panickertMemberI 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 WorkbenchVersion: 5.0 GA
Build id: 20060805-5.0-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.0.1 GA
Build id: 20060810-5.0.1-GAEclipse Platform
Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
Build id: M20060629-1905Eclipse Java Development Tools
Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
Build id: M20060629-1905Eclipse Plug-in Development Environment
Version: 3.2.0.v20060609m——6zXJJzJzJq
Build id: M20060629-1905Eclipse Project SDK
Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
Build id: M20060629-1905Eclipse Graphical Editing Framework
Version: 3.1.0
Build id: 20060627-0816Eclipse RCP
Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
Build id: M20060629-1905Eclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816Eclipse 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.exeCan 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.
Haris PecoMemberpanickert,
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 projectBest
Peco
panickertMemberPeco,
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>
Haris PecoMemberPanickert,
It looks correct.It is difficult to conclude.
Please, can you send your project to support@myeclipse.com with subject ATTN: snpeSorry for the inconvience caused
Thanks
Peco
panickertMemberHello 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)
Brian FernandesModeratorPanickert,
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.
panickertMemberWhat 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.
-
AuthorPosts