[Andromda-user] [Hibernate cartridge] [Database Schema] hibernate docs

2005-07-10 Thread dbendlin
Guys, The hibernate docs about using schemas are in: hibernate 2.x Please refer to sections 5.1.2 hibernate-mapping, 5.1.3 class and 6.2 Mapping a Collection hibernate 3.x Please refer to sections 6.1.2 hibernate-mappings, 6.1.3 class and 7.2 Collection mappings This feature wo

[Andromda-user] [Newbie corner] [problems with association between entities an other classes] problems with association between entities an other classes

2005-07-10 Thread Caro
Hello, I am developing a cartridge for BusinessObject. Therefore I copied and extended the EJBMetafacadeModel. I extended the Entity with a businessObjectFacade class and ClassifierFacade with javaClassFacade. The profile is customized and -- so far it works fine. But while setting assoc

[Andromda-user] [Newbie corner] [problems with association between entities an other classes]

2005-07-10 Thread [EMAIL PROTECTED]
getting the association ends from a regular class is done like this (ClassifierFacadeLogicImpl.java, line #89 (http://galaxy.andromda.org/docs/andromda-metafacades-uml14/xref/org/andromda/metafacades/uml14/ClassifierFacadeLogicImpl.html#89)):     /**      * @see org.andromda.metafacades.uml

[Andromda-user] [Bpm4Struts cartridge] [controller inheritance] controller inheritance

2005-07-10 Thread szroland
Hey, I'm in a situation, where one of my controller classes naturally extend another controller. One has some data loading functionality, the other needs that, plus adds some data saving functionality for its use case. You can model this in MagicDraw, and it is possible to use the methods fr

[Andromda-user] [Newbie corner] [some questions]

2005-07-10 Thread [EMAIL PROTECTED]
Quote: Quote: - How can I tell androMDA to add my stereotypes and tagged values default to the profile of new projects? (end of quote) You'll need to add them to your projects in packages different than the ones in the andromda-profile, or you can create a profile of your own that

[Andromda-user] [Spring cartridge] [SQL Scripts not being created] SQL Scripts not being created

2005-07-10 Thread ky1931
I have the following questions: 1. The project.properties specifies the database connections. The following lines are in the file: dataSource.sql.init=core/target/schema-create.sql dataSource.sql.drop=core/target/schema-drop.sql dataSource.sql.load=core/target/db/create-dummy-load.sql Ho

[Andromda-user] [WebServices cartridge] [Problems webservicing' Object[]s]

2005-07-10 Thread skabeat
[EMAIL PROTECTED] wrote: Verify the WSDL is valid using this tool: http://www.capescience.com/soa/index.shtml If it is valid, then its an Axis bug...however again it should really work with 1.2-RC3 for sure. (end of quote) it works with 1.2-RC3 thanks! ___

[Andromda-user] [Project generator] [packaging question (or suggestion!)] packaging question (or suggestion!)

2005-07-10 Thread skabeat
Hi all, I was wondering if it could be possible for the "core" sub-project to generate a "core-client" jar in maven repo as well. If I want to access (thru jndi) application1 ejbs from another application2, I can't include the core1.jar in application2 classpath because of the ejb deployers

[Andromda-user] [Bpm4Struts cartridge] [controller inheritance]

2005-07-10 Thread [EMAIL PROTECTED]
no this is not supported, the controllers should not contain any specific business logic, they typically simply delegate to a service if you would really need to share some code between them it's recommended to write another class manually and have both controllers call that class from an

[Andromda-user] [Spring cartridge] [SQL Scripts not being created]

2005-07-10 Thread [EMAIL PROTECTED]
the sql scripts are generated when the core component is built, it's using SchemaExport check out core/maven.xml did you ever try to build your entire project ? you should do that, and you'll find the scripts in core/target -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/

[Andromda-user] [Project generator] [packaging question (or suggestion!)]

2005-07-10 Thread [EMAIL PROTECTED]
in that case it would be better to create a new component, let's say core-client, which would have its own project.xml just like the core and all the other components that way it would be very easy to manage it, and have it produce an artifact it would also be more straightforward to decid

[Andromda-user] [WebServices cartridge] [Problems webservicing' Object[]s]

2005-07-10 Thread [EMAIL PROTECTED]
You're welcome! You should file a bug for Axis: http://issues.apache.org/jira/browse/AXIS (so they can fix it). -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.p

[Andromda-user] [Spring cartridge] [SQL Scripts not being created]

2005-07-10 Thread ky1931
Yes, I did build the whole project. I am trying to walk through your Spring Cartidge usage example. _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2297#2297 Posting to http://forum.andromda.org/ is preferred over post

[Andromda-user] [Spring cartridge] [SQL Scripts not being created]

2005-07-10 Thread [EMAIL PROTECTED]
are you using hibernate 2 or hibernate 3 ? there was a bug in CVS some time where the core/maven.xml file would include a reference to net.sf.hibernate instead of org.hibernate when using hibernate 3 if you are using hibernate 3 you should make sure all occurrences of net.sf are replaced by

[Andromda-user] [Spring cartridge] [SQL Scripts not being created]

2005-07-10 Thread ky1931
I have hibernate 2.1 loaded on my machine. However where would I tell AndroMDA what version it needs to use? Thanks. _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2299#2299 Posting to http://forum.andromda.org/

[Andromda-user] [Spring cartridge] [SQL Scripts not being created]

2005-07-10 Thread [EMAIL PROTECTED]
the best place to configure it is when you generate a new project, if you want to configure an existing project you'll need to set the hibernateVersion namespace property, preferably in the default namespace (you can do this in mda/conf/andromda.xml and do a search&replace-all on net.sf, rep

[Andromda-user] [Hibernate cartridge] [Database Schema]

2005-07-10 Thread [EMAIL PROTECTED]
Thanks for the docs, can you create a JIRA issue for the Hibernate cartridge and we'll add support for the schema attribute? Thanks Diego. -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andr

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1] migrating from generator 3.0 to 3.1

2005-07-10 Thread agarneau
Hi, I would like to use androMDA server but I generated my projetct with version 3.0. I aslo notice that I do not have a andromda.xml file in my /mda/conf/ directory?? I generated a new project, copied the andromda.xml in my current project and updated maven.xml at the root. Unfortunalt

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread [EMAIL PROTECTED]
Quote: Unfortunaltely it does not work. I think I am missing something here.. (end of quote) What error are you getting? You should be able to just copy over the andromda.xml to your new project and make sure you're pointing to it with this property: # Configures AndroMDA maven.andromd

[Andromda-user] [Spring cartridge] [Error while trying to connect...] Error while trying to connect...

2005-07-10 Thread wciesiel
Hi there, I have some webapp (generated by bpm4struts) trying to connect to service (SLSB) on the same JBoss 4.0.2. While trying to do String info = this.getMassolitCatalogService().getSomeText(); in CatalogBrowserControllerImpl (implementation of some controller) I get such errors: org

[Andromda-user] [Spring cartridge] [Error while trying to connect...]

2005-07-10 Thread [EMAIL PROTECTED]
Remove your "transactionManager" namespace property from your spring namespace in your mda/conf/andromda.xml (the default is now the JtaTransaction manager), so you don't need to specify it. -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org

[Andromda-user] [Newbie corner] [Regenerating DDL and MySQL] Regenerating DDL and MySQL

2005-07-10 Thread agarneau
HI, I have generated a MySQL database with the maven create-schema command. It worked fine. I added a new entity class and now the entire DDL generation fail. Here is what I get: __ __ | / |__ _Apache__ ___ | |/| / _` V / -_) ' ~ intelligent projects ~ |_| |___,_|_/___|_||_

[Andromda-user] [Newbie corner] [Regenerating DDL and MySQL]

2005-07-10 Thread [EMAIL PROTECTED]
Did you get any model validation errors when running andromda? You'll notice your types aren't being resolved "$attribute.sqlType". -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.or

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread dbrentverner
I hacked andromda to support defining the hibernate discriminator bits as tagged values...but then I went to the jira and read that using tagged values was not the right solution and I agree with the arguments against the use of tagged values in the model. So _how should_ this be modelled?

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread [EMAIL PROTECTED]
Actually 2 namespace properties would be appropriate: one to define the name and one to define the type, then you could use 2 tagged values to override the defaults where required. Which JIRA issue were you referring to that said tagged values were not a good idea for discriminators? -- Chad B

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread dbrentverner
My understanding from the discussion on these two jira issues was that using tagged values was incorrect due to the fact that you were putting hibernate-specific information where it shouldn't be. http://galaxy.andromda.org/jira/browse/HIB-32 http://galaxy.andromda.org/jira/browse/HIB-55

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread [EMAIL PROTECTED]
Quote: My understanding from the discussion on these two jira issues was that using tagged values was incorrect due to the fact that you were putting hibernate-specific information where it shouldn't be. (end of quote) Actually that was assuming you were modeling it with an attribute (whic

[Andromda-user] [Newbie corner] [DAO] DAO

2005-07-10 Thread debsouzac
Hi all ! I'm trying to implement a query. I 'm using a service class , a controller class and a entity class. The entity class has a query in OCL and works fine and the DAOs were generated with no problems.. but The question is: I would like to call this query and i don't where I do it: th

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread dbrentverner
I'm confused. Why would you define this in andromda.xml? It should be expressed in the model, no? My model should be able to tell me that a Book is a Publication whose type is "book." How can I model that fact? (forgive my limited knowledge of UML...) thanks. ___

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread [EMAIL PROTECTED]
Currently if you take a look at the HibernateEntityLogicImpl.java, you'll see this for the discrimiator column and type:     /**      * @see org.andromda.cartridges.hibernate.metafacades.HibernateEntity#getHibernateDiscriminatorColumn()      */     protected String handleGetHibernateDiscri

[Andromda-user] [Newbie corner] [DAO]

2005-07-10 Thread [EMAIL PROTECTED]
You need to draw a dependency from your service to the entity, this will generate a getter on your service that allows you to retrieve the DAO instance (you don't instantiate the DAO). Take a look at this page, it describes what I'm talking about: http://team.andromda.org/docs/andromda-spring

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread dbrentverner
Yeah, I've been in that code :-) I've already modified it to use tagged values for column, type and value, and I was going to submit a patch in jira when I read the discussion on the relevant issues. I could easily modify my code to use a namespace property, but I'm not sure that is right,

[Andromda-user] [Newbie corner] [DAO]

2005-07-10 Thread debsouzac
Thanks ! I finally used getEntityDao at the service class. But how i get the return of this method on the controller class or it is just necessary one of the classes (service/controller) ? [] Debora _ Reply to the post : http://galaxy.a

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread [EMAIL PROTECTED]
Quote: For one, we'd still have to get the discriminator value into the model somewhere (a thing I've not seen you mention at all for some reason). (end of quote) What do you mean I haven't mentioned it...a tagged value is in the model is it not? All I'm saying is that in addition to you

[Andromda-user] [Newbie corner] [DAO]

2005-07-10 Thread [EMAIL PROTECTED]
Draw a dependency from the controller to the service and you'll have a "get" accessor generated on the controller, then you can call any of the service operations from that service accessor. -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org

[Andromda-user] [Newbie corner] [Regenerating DDL and MySQL]

2005-07-10 Thread agarneau
Hi, I found error in the hibernate.log: ERROR 2005-07-10 16:24:08,203 - Error getting 'sqlMappingsUri' --> 'MySQl' org.andromda.core.mapping.MappingsException: Error performing Mappings.getInstance at org.andromda.core.mapping.Mappings.getInstance(Mappings.java:71) at or

[Andromda-user] [Spring cartridge] [HibernateTransactionManager not found] HibernateTransactionManager not found

2005-07-10 Thread Gary Struthers
I've created a new project specifing Hibernate 3 but at runtime I get this class not found error: org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefFactory.xml], facto ry key [beanRefFactory]; nested ex

[Andromda-user] [Spring cartridge] [HibernateTransactionManager not found]

2005-07-10 Thread [EMAIL PROTECTED]
Is your "localTransactionManager" property in the spring namespace set to this?: org.springframework.orm.hibernate.HibernateTransactionManager If so: it should be set to this: org.springframework.orm.hibernate3.HibernateTransactionManager -- Chad Brandon - [EMAIL PROTECTED] http://www.

[Andromda-user] [Newbie corner] [Regenerating DDL and MySQL]

2005-07-10 Thread [EMAIL PROTECTED]
Make sure your sqlMappingsUri is set to "MySQL" in your hibernate namespace of the andromda.xml (assuming you're using 3.1.x), you have it as "MySQl" -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://g

[Andromda-user] [Spring cartridge] [HibernateTransactionManager not found]

2005-07-10 Thread Gary Struthers
... true org.springframework.orm.hibernate3.LocalSessionFactoryBean org.springframework.orm.hibernate3.HibernateTransactionManager org.hibernate.cache.EhCacheProvider org.hibernate.cache.StandardQu

[Andromda-user] [Spring cartridge] [HibernateTransactionManager not found]

2005-07-10 Thread Gary Struthers
Oh! Now I see there is no "localTransactionManager. I'll add one. Would that explain why I didn't have a localDataSource.xml as well? I didn't delete localTransaction it must not have been generated. _ Reply to the post : http://galaxy.andr

[Andromda-user] [Newbie corner] [Regenerating DDL and MySQL]

2005-07-10 Thread agarneau
Hello, Thank you so much for the info. I had changed it previously but I wrote MySQl instead of MySQL... [Embarassed] Alain _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2326#2326 Posting to http://forum.a

[Andromda-user] [Spring cartridge] [HibernateTransactionManager not found]

2005-07-10 Thread [EMAIL PROTECTED]
                                    ${dataSource}                 ${dataSource.user}                 ${dataSource.password}                 ${dataSource.driver.class}                 ${dataSource.url}                 ${hibernate.db.dialect}                 ${hibernate.db.showSql}      

[Andromda-user] [Newbie corner] [DAO]

2005-07-10 Thread debsouzac
Thanks a lot , Chad ! :D _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2328#2328 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ---

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread dbrentverner
Quote: I would think this would be modeled appropriately though inheritance: A book extends/specializes a publication, therefore a book is a special type of publication. (end of quote) This is precisely what I'm trying to accomplish. I've modelled Book as a generalization of Publication (

[Andromda-user] [Spring cartridge] [HibernateTransactionManager not found]

2005-07-10 Thread Gary Struthers
Thanks Chad, I edited the property name and it solved this problem. I thought I had all the latest plugins. Do I have to delete old ones in the repository or can I trust Maven to update them always? Gary _ Reply to the post : http:/

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread [EMAIL PROTECTED]
Quote: I need to get a list of Publications and be able to determine the "type" of each Publication, which is why I need to have a "type" attribute, be it a String or a PublicationType, on Publication whose value is provided by the subclass (Book) (end of quote) Couldn't you just do "insta

[Andromda-user] [Spring cartridge] [HibernateTransactionManager not found]

2005-07-10 Thread [EMAIL PROTECTED]
No problem Gary, Everything will be updated by maven except for the andromdapp plugin (its not a dependency in a project so therefore it can't be downloaded automatically). So when updating that plugin, you'll need to execute the plugin:download command on this page: http://team.andromda.o

[Andromda-user] [Spring cartridge] [SQL Scripts not being created]

2005-07-10 Thread ky1931
I believe based your documentation the default value for HibernateVersion is 2. I have searched through the files and nowhere is any reference to the variable "hibernateVersion". Also, I have no andromda.xml file as you have indicated on your response. I have just maven.xml and project.xml

[Andromda-user] [Spring cartridge] [SQL Scripts not being created]

2005-07-10 Thread ky1931
Hello Again: I was usually building only the mda directory using "maven mda". HOwever when I run either "maven -o" or just "maven" at the project level, I get the following error messages. Can you point where the problem might be? java:compile: [echo] Compiling to C:Documents and Sett

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread agarneau
Hi, I have added the 2 lines you gave me inside the project.properties file of mda/ directory. I thought I should also change andromda.version in buld.properties at the root of the project. I changed it to 3.1-M1-SNAPSHOT. Now I am getting this error message: BUILD FAILED Fi

[Andromda-user] [Spring cartridge] [Something strange is going on while instanitalizing EJB] Something strange is going on while instanitalizing EJB

2005-07-10 Thread wciesiel
Hi there, Some strange things are happening to my project... 1. Spring seems to ignore viewType tagged value of <> class - I had to change ejbViewType property 2. I have 2 types of clients - web-app (deployed within the same EAR as ejb) and standalone Swing-based application. And here c

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread [EMAIL PROTECTED]
The version should be "3.1-RC1-SNAPSHOT" -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2336#2336 Posting to http://forum.andromda.org/ is preferred over pos

[Andromda-user] [Spring cartridge] [Something strange is going on while instanitalizing EJB]

2005-07-10 Thread [EMAIL PROTECTED]
Quote: 1. Spring seems to ignore viewType tagged value of <> class - I had to change ejbViewType property (end of quote) It's always been "ejbViewType"...not sure how viewType would have ever worked. Quote: 2. I have 2 types of clients - web-app (deployed within the same EAR as ejb) an

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread agarneau
Hi, I changed to RC-1 but maven could not find the depenencies. So I added maven.repo.remote=http://www.ibiblio.org/maven,http://team.andromda.org/maven in the build.propertires file at the toor of the project. All dependencies have been downloaded but I end up with this: pom:install

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread agarneau
I also get a second error message: BUILD FAILED File.. C:Documents and SettingsAdministrateur.mavencachemaven-multiproj ect-plugin-1.3.1plugin.jelly Element... maven:reactor Line.. 217 Column 9 Unable to obtain goal [multiproject:install-callback] -- C:Documents and Setting

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread [EMAIL PROTECTED]
Take a look at this page: http://team.andromda.org/docs/configuration.html (you'll want to add the element like you see there). -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/fo

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread agarneau
Thanks, I will take a close look. Maybe I should rebuild the project form the start with version 3.1 using andromdapp:generate for that specifi version. It was working well with andromda 3.0. I started to get problems when I tried to migrate to 3.1. Alain _

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread [EMAIL PROTECTED]
Yeah that might be easier: just specify the version as 3.1-RC1-SNAPSHOT, when installing the andromdapp plugin. -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php

[Andromda-user] [Spring cartridge] [Something strange is going on while instanitalizing EJB]

2005-07-10 Thread wciesiel
JBoss 4.0.2. RemoteServiceLocator used by standalone web-app looks like this: package com.massolit; import javax.naming.Context; import javax.naming.NamingException; import javax.naming.InitialContext; import java.util.Hashtable; import org.apache.log4j.*; import com.massolit.service.

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread dbrentverner
nstanceof doesn't seem to work :- I couldn't work out how to create a finder <> to do this, so I had to resort to using a plain old hibernate session... Query query = session.createQuery("from PublicationImpl"); for( Iterator it = query.iterate(); it.hasNext(); ){   Object o = it.next()

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread [EMAIL PROTECTED]
Quote: instanceof doesn't seem to work :- (end of quote) Darn..that's too bad. Quote: I know I can hack andromda to do what I want, but I'd _much_ rather be able to contribute that work back into andromda for others' benefit. (end of quote) Of course, I agree: but the discriminato

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread dbrentverner
Actually, I did make the discriminator work with joined-subclass, so this is really just a matter of deciding how to model this concept. I would really like to model this as in the model linked above, where the inherited "type" attribute is set to an immutable default value by the subclass.

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread [EMAIL PROTECTED]
Quote: I would really like to model this as in the model linked above, where the inherited "type" attribute is set to an immutable default value by the subclass. We could know to implement the model with the hibernate discriminator under these conditions. (end of quote) Have you read in th

[Andromda-user] [Hibernate cartridge] [modeling question]

2005-07-10 Thread dbrentverner
The discriminator docs say this: Quote: tell the persistence layer what subclass to instantiate for a particular row. (end of quote) additionally, this example illustrates exactly what I want http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#inheritance-tablepersubclass-discrimi

[Andromda-user] [WebServices cartridge] [Value Objects]

2005-07-10 Thread simong
Hi Chad, Sorry, but got pulled away from this for a bit, but am now back. I filed an issue in JIRA relating to this post: http://galaxy.andromda.org/jira/browse/WS-5 Quote: We should however probably mention this in the docs, any idea where in the documentation you would expect to find

[Andromda-user] [Project generator] [migrating from generator 3.0 to 3.1]

2005-07-10 Thread agarneau
Everything is running perfectly now! Thanks _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2351#2351 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! --

[Andromda-user] [Spring cartridge] [Spring AOP xml files] Spring AOP xml files

2005-07-10 Thread agarneau
Hi, I used andromdapp:generate to start my project and I would like to integrate some aspect in seperate xml files. I was wondering in which directory should I put them? In a non androMDA spring app it would go into WEB-INF but my files would be erased if I put them there. Any ideas?