[Andromda-user] [Hibernate cartridge] [Modeling an associated class as an ordered list?]

2005-08-16 Thread [EMAIL PROTECTED]
Quote: Otherwise, can the person who works on the Hibernate cartridge make this fix? (end of quote) File a JIRA issue and I'm sure Carlos will take care of it (but of course a patch is always nice :)) -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org __

[Andromda-user] [Hibernate cartridge] [Modeling an associated class as an ordered list?]

2005-08-16 Thread joelkoz
More info on this topic: Two revealing posts from the Hibernate forum: http://www.hibernate.org/193.html and (if you are using Hibernate 3): http://forum.hibernate.org/viewtopic.php?t=945853&highlight=listindex Also, I believe there is a bug in the "ordered list" feature of AndroMD

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-16 Thread rossh
Woulter, looks like a good approach which would be made easier with a well structured model comprised of independent packages. This may not be the case for Safaa - particularly if the model is based on some of the XML financial services standardsi.e. SWIFT, FinXML, ACORD. From my brief look

[Andromda-user] [Hibernate cartridge] [exception with finding method with hibernate session] use finder methods without ejb

2005-08-16 Thread carmello
Do you mean a service like the example on this page ? Is it possible to use finder methods that are generated with andromda without EJB? Thanks _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3884#3884 Posting to

[Andromda-user] [Hibernate cartridge] [exception with finding method with hibernate session]

2005-08-15 Thread [EMAIL PROTECTED]
You should model a service and then model a dependency from your service to the entities you want to use. You then retrieve your service through the generated ServiceLocator and call the operations you need. The DAOs are not exposed outside the service only from within service implementation.

[Andromda-user] [Hibernate cartridge] [exception with finding method with hibernate session]

2005-08-15 Thread carmello
I have hibernateTemplate, sessionFactory and jdbcExceptionTranslator beans in my servlet config file. I have a class that gets the DAO (by using depency injection defined in my servlet config file), then I just call the finder method on the DAO. Is this correct? Is there any full example a

[Andromda-user] [Hibernate cartridge] [exception with finding method with hibernate session]

2005-08-15 Thread [EMAIL PROTECTED]
Quote: I have set the "hibernateTemplate" property which has two properties set, sessionFactory and jdbcExceptionTranslator. (end of quote) What do you mean..where have you set those? You shouldn't need to do any configuration, all the support is generated for you. How are you calling yo

[Andromda-user] [Hibernate cartridge] [exception with finding method with hibernate session] exception with finding method with hibernate session

2005-08-15 Thread carmello
Hi, I added a finder method to my model in MagicDraw, when I call the finder method I get an exception that there is no Hibernate session bound. "No Hibernate session bound to thread, and configuration does not allow creation of new one here" I have set the "hibernateTemplate" property

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-15 Thread [EMAIL PROTECTED]
You could also try setting this namespace property to "save-update" or "all": http://team.andromda.org/docs/andromda-hibernate-cartridge/namespace.html#hibernateDefaultCascade By default its set to none. -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-15 Thread [EMAIL PROTECTED]
can you try this (pseudocode): Person person = Person.Factory.newInstance(); person = personDao.create(person); Car car = Car.Factory.newInstance(); car = carDao.create(car); person.getCars().add(car); personDao.update(person); the problem you are seeing is that the car is never

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade] still problems

2005-08-15 Thread carmello
I dont call the HibernateTemplate directly, I just call the update method of the DAO. I create a new person with the factory from person (Person.Factory.newInstance(); ) then create a new Car in a simular way and call person.getCars().add(newCar);, then I call personDAO.create(person) to s

[Andromda-user] [Hibernate cartridge] [EMAIL PROTECTED] & machmode]

2005-08-15 Thread sirgb
Thanks, Wouter was quicker... Thanks Wouter! -- Ganszky, Balázs _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3863#3863 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! --

[Andromda-user] [Hibernate cartridge] [EMAIL PROTECTED] & machmode] Revoke, recall previous entry of mine...

2005-08-15 Thread sirgb
Sorry, ignore my pervious entry. I must create a criteria class and I have to use this in a parameter of a finder method of an entity. Anyway this is a spring thing... THX -- Ganszky, Balázs _ Reply to the post : http://galaxy.andromda.o

[Andromda-user] [Hibernate cartridge] [EMAIL PROTECTED] & machmode]

2005-08-15 Thread [EMAIL PROTECTED]
the match mode is used for criteria queries: -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3861#3861 Posting to http://forum.andromda.org/ is preferred ov

[Andromda-user] [Hibernate cartridge] [EMAIL PROTECTED] & machmode] @andromda.hibernate.criteria.comparator & machmode

2005-08-15 Thread sirgb
Hi, I'm using - still r3.0. I have an entity and I have a function (query - and no other stereotype for the function) I have a function parameter (String type) what i want to use in the query (autogenerated, i dont wanna do anything special). So in the tagged value of parameter i set the

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-15 Thread [EMAIL PROTECTED]
Quote: HibernateTemplate is used to save in the dao (end of quote) you should not use the HibernateTemplate directly for this, just call PersonDao.update(person) after setting the cars into the person object this is not related to cascade -- Wouter Zoons - [EMAIL PROTECTED] http://www.an

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade] cascade save problem

2005-08-15 Thread carmello
Hi, I also got problems with cascade, when I have for example a Person and I want to add a car to the person I create a Car, add it to a HashSet and and that HashSet to the person by calling person.setCars(carsSet); it this the correct way? Currently when I update the person no cars are

[Andromda-user] [Hibernate cartridge] [Hibernate3 and andromda.hibernate.lazy modelling parameter]

2005-08-14 Thread sverker
Hi acctually lazy="true" is wrong on many-to-one and one-to-one asociations. It need to be lazy="proxy". The doc is wrong or just confusing. I reported this issue to Hibernate JIRA (http://opensource.atlassian.com/projects/hibernate/browse/HHH-862) but my patch was rejected with the reason

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-14 Thread [EMAIL PROTECTED]
safaa wrote: As for the scalability issue you addressed, I am talking about the scalability of the AndroMDA tool (end of quote) for all other readers out there who just tune in: he's talking about the SchemaExport tool, not AndroMDA (all files have been generated fine) it's probably rela

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-13 Thread safaa
Thanks for the reply; The model I am currently trying to process in AndroMDA is one of the many models (5-6) that form the basis for my application. This particular model is the domain model related to a financial industry sector I am working in and at this time I am interested in keeping th

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-13 Thread rossh
Safaa, whilst I can see your point there is a more fundamental underlying issue regarding scalability that has nothing to do with AndroMDA. Yes, there could be a problem with how AndroMDA "glues" together the underlying frameworks - but it is a fact of life that there are limits to all system

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-12 Thread safaa
Wouter: Your statement: "You're basically saying that if there's a bug in commons-lang which makes your application throw a runtime Exception it's the responsability of the AndroMDA developers to get it fixed (same story for all the other dependencies) " Is not what I am saying. Here is

[Andromda-user] [Hibernate cartridge] [foreign key constraint name cause SchemaExport error?]

2005-08-12 Thread safaa
As I said, I am getting what was supposed to be a fixed bug. My error reads: BUILD FAILED C:cvs_workihbuild.xml:86: Schema text failed: Foreign key (O_L_I__L_U__R_A_T_ I_N_G_S [PARTICIPANT_FK,PARTICIPANT_OBJ_FK])) must have same number of columns as the referenced primary key (PARTICIPANT [I

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-12 Thread [EMAIL PROTECTED]
if you read the profile and namespace documentation from the hibernate cartridge you'll see there are some properties and tagged values that configure the way the cartridge generates cascaded association ends you have read all of this information ? if you really think there's a bug you mig

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade] cascade

2005-08-12 Thread rbonifacio
Hi Wouter. We still having problems with cascade. There's some issue with agregation, composition, cardinality, navegability, .? We have tried with both association ends, didn't work. regards Rodrigo / Ze Augusto _ Reply to the

[Andromda-user] [Hibernate cartridge] [discriminator-value bug?]

2005-08-12 Thread Carlos Cuenca
Quote: I entered the bug as HIB-128 in Jira. (end of quote) Thanks, I will solve it next week when I come back to the office. Quote: You did a great job there! (end of quote) Thanks for the compliments, but these are for all the team, the truth is that most part of the job was done

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-12 Thread [EMAIL PROTECTED]
safaa, I was not just kidding, I was trying to make a point you're basically saying that if there's a bug in commons-lang which makes your application throw a runtime Exception it's the responsability of the AndroMDA developers to get it fixed (same story for all the other dependencies) it

[Andromda-user] [Hibernate cartridge] [foreign key constraint name cause SchemaExport error?] foreign key constraint name cause SchemaExport error?

2005-08-12 Thread safaa
I get this error during schema generation TODAY. When searching in google, I found an old AndroMDA/Hibernate Cartridge issue dated 3/05: -- START OF QUOTE --- The bug results in errors of this ilk during schema-export: Foreign key (SEE_ALSO [SEE_ALSO_FK,BIBLI

[Andromda-user] [Hibernate cartridge] [discriminator-value bug?]

2005-08-12 Thread JGebhardt
Hi Carlos, I entered the bug as HIB-128 in Jira. By the way, I want to use this opportunity to congratulate and thank you for the development of the Hibernate Cartridge. You did a great job there! _ Reply to the post : http://galaxy.an

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-11 Thread safaa
You mentioned that I can use your code of a "SchemaExport" ant task. Are you using ant instead of Maven (which uses ant of course)? What I think I need to do is to use a separate SchemaExport task (in maven.xml) independent of the jar:jar goal of maven such that I can run the SchemaExport by it

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-11 Thread safaa
Thanks guys for the lively interaction; Wouter -- Fixing a non-working part in a car so that the car as a whole starts working again is simply referred to as fixing the car. Also, there is no such thing as fixing a car independent of fixing its parts; to fix a car IS-EQUAL-TO fixing the non

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-11 Thread [EMAIL PROTECTED]
no, that's it .. the value will be used as-is in the *.hbm.xml so make sure you select a value that Hibernate can understand -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply to the post : http://galaxy.andromda.org/forum

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-11 Thread [EMAIL PROTECTED]
Quote: when one part breaks the whole thing is considered broken. (end of quote) Actually that's not true: If Hibernate was broken, we could generate for another persistence tier...andromda is in no way dependant on Hibernate, Spring, etc etcagain: those are just the default cartridge

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade] cascade

2005-08-11 Thread rbonifacio
Thanks Wouter I need set this tagged value in association end, wright? Anithing else? Regards and congratulations. Rodrigo. _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3777#3777 Posting to http://forum.and

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-11 Thread [EMAIL PROTECTED]
safaa wrote: An example analogy is when one says that my car stopped working in the middle of the road and I can't go to my destination, one come along and says not to blame the care, just blame this or that part, the car is fine. Well you can see that is an akward statement. It doesnot work t

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-11 Thread [EMAIL PROTECTED]
in that case just add it somewhere in your model, doesn't really matter where -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3774#3774 Posting to http://for

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-11 Thread safaa
Hi Chad; My comments are not directed at the concept of AndroMDA and approach, but at its state with regard to handeling large models. When you say that: "AndroMDA is an MDA generator..." then you are talking about all generation tasks (Model Driven Architecture Artifacts Generator), in

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade] cascade

2005-08-11 Thread rbonifacio
No :( We still are using AndroMDA 3.O _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3772#3772 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list!

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-11 Thread [EMAIL PROTECTED]
Quote: - AndroMDA can't generate the SchemaExport file as it stands today. (end of quote) You continue to confuse andromda with Hibernate and Maven. AndroMDA != Maven, AndroMDA != Hibernate. AndroMDA is an MDA generator...the whole andromdapp thing is a way to get your jumpstarted on using

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?] SchemaExport generation Exception -- Model Size Issue

2005-08-11 Thread safaa
Ok. Here is an interesting finding for all those who plan on having large models in AndromDA of a size comparable to mine (mine is about 1300 classes and 13,000 relations, that generates about 3400 compiled classes and about 650 *.hbm.xml files): - AndroMDA can't generate the SchemaExport fi

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-11 Thread [EMAIL PROTECTED]
I added that tagged value to the persistence profile a few days ago, are you using the very latest 3.1-RC1-SNAPSHOT ? -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply to the post : http://galaxy.andromda.org/forum/viewto

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade] cascade

2005-08-11 Thread rbonifacio
Obrigado, mas oaps, sorry. Thanks..but... The tagged value must be defined in AndroMDA profile or may be in another package? Rodrigo _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3764#3764 Postin

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-11 Thread [EMAIL PROTECTED]
yes, its documentation can be found here: -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3761#3761 Posting to http://forum.andromda.org/ is preferred over

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade] cascade

2005-08-11 Thread rbonifacio
Hi. is just add the tagged value in model? The hibernate catridge supports it? Thanks _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3760#3760 Posting to http://forum.andromda.org/ is preferred over posting to

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-11 Thread Carlos Cuenca
Also right now we are using SchemaExport to generate hbms, but since there are specific ant task to do this, you could try doing this way: ie.                               _ Reply to the post : http://galaxy.andromda.org/forum

[Andromda-user] [Hibernate cartridge] [discriminator-value bug?]

2005-08-11 Thread Carlos Cuenca
I am agree on that, please you post a Jira issue and I will take care of it. thanks for the feedback Carlos _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3751#3751 Posting to http://forum.andromda.org/ is pre

[Andromda-user] [Hibernate cartridge] [discriminator-value bug?] discriminator-value bug?

2005-08-11 Thread JGebhardt
Hi, is it possible that there is a discriminator-value bug in the Hibernate cartridge? The hibernate.hbm.xml.vsl template contains the following line: However, if I use inheritance and the base class is not abstract this line should also contain the discriminator value like this:

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-10 Thread Carlos Cuenca
on is expalined how to compile hibernate, then you should just replace the library inside your maven repository with the new one. Also you should run maven with the -o option, so it does not download the dependencies (and overrides) the new library. Carlos

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-10 Thread safaa
Please explain little bit further on: Quote: but the approach I took was to recompile hibernate. (end of quote) i.e., How To Do That, since AndroMDA already comes with the hibernate compiled 2 and 3 libraries. Regards Safaa -- Safaa Hashim ___

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-10 Thread Carlos Cuenca
safaa wrote: Have you used the approach you suggested to get logging info yourself? Safaa (end of quote) yes, I did, I used the log4j.properties file that comes with the distribution of hibernate, but the approach I took was to recompile hibernate. Carlos

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?] Update: SchemaExport failed - New findnings

2005-08-09 Thread safaa
To test the relationship of the inability to run SchemaExport to the size of the model I did the following: I put some of the 640 generated *.hbm.xml files in a temp directory outside the src directory where hibernate is expecting them. I found out that at about 392 *.hbm.xml I can get ove

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread safaa
I tried putting log4J.properties all over the place, in core, target. as well as target/src. Nope nothing changed as ol'output. Have you used the approach you suggested to get logging info yourself? Anyone out there have an idea? Regards Safaa -- Safaa Hashim

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread Carlos Cuenca
hibernate uses log4j for logging, so if you create a log4j.properties in the root of the project (or maybe on core), you should be able to get more info. ### log schema export/update ### log4j.logger.net.sf.hibernate.tool.hbm2ddl=debug Carlos ___

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread safaa
Thanks Carlos; I don't think I have the file locking problem since I can easily run the code generation for SchemaExport for small to medium sized projects with output for the jar:jar goal at the problem spot generating something like this: jar:jar: [jar] Building jar: C:cvs_workimapcor

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread Carlos Cuenca
hi, I am using large models also but I am not having that errors. One idea: I do not know why, but I had found that in some strange cases files get locked, and the problem is that hibernate schema export can not open them. Did you try to delete all content on target folder (inside core) an

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade] where is the @andromda.hibernate.cascade

2005-08-09 Thread linuxiicnmpl
Hi,all. I searched the 3.1M1 and 3.1-RC1-SNAPSHOT(Aug 8th), to my surprise, there is no such tag value. Where is it? Thanks. _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3670#3670 Posting to http://forum.andromda.o

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread safaa
I tried few more things without success: - JDK1.4 doesnot work and won't be able to even complete the core generation process. Dead-end, switched back to 1.5 - Changed the maven-opts parameter to give it more memory (Xmx512m instead of defult -Xmx256m), didn't work either. - The referen

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread safaa
Please ignore my last trial to figure out the SchemaExport problem. The error is most likley related to the inability to find the: since it is a JVM argument and it says that it will not pass a new JVM arguments if it ran the new command in the same JVM process, so this is probably the

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread [EMAIL PROTECTED]
what is the size of your model in megabytes ? is it very big ? -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3667#3667 Posting to http://forum.andromda.org

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?] SchemaExport failure -- more info on Why?

2005-08-09 Thread safaa
To get more information on teh error, I took out the "fork" attribute o fthe "java" task in the "maven.xml" build file in teh "core" sub-directory of my project, what this did (I think) is to run the SchemaExport generation process in the same JVM as Maven, and since I have assigned lots of mem

[Andromda-user] [Hibernate cartridge] [where is the @andromda.hibernate.cascade]

2005-08-09 Thread [EMAIL PROTECTED]
yeah that tagged value is missing from the profile .. I'll add it now .. you'll have it in the next build (you can always add it yourself too if you need it immediately) -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread safaa
Without diagrams (which is what I use for AndroMDA) is 7.03MB With Diagrams (full model), which I don't use for AndroMDA, is 26.5MB It is definitely related to size since I already verified that for small to medium sized model 1-2MB I have no problem, but for large one like mine I can't get

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-09 Thread [EMAIL PROTECTED]
os ? model size ? -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3663#3663 Posting to http://forum.andromda.org/ is preferred over posting to the mailing l

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-08 Thread safaa
- No there is another similar process running. - No I didn't try an older JVM like 1.4, I am using 1.5 Also, my analysis produced the following indicators: - I used a second project with smaller model with the exact same configuration, and same everything (to the last detail) and was able

[Andromda-user] [Hibernate cartridge] [

2005-08-08 Thread Carlos Cuenca
...already on the wish list (HIB-108). Carlos _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3657#3657 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list!

[Andromda-user] [Hibernate cartridge] [H3 experiencing lazy="true" on many-to-one associa]

2005-08-08 Thread Carlos Cuenca
hi could you please post a Jira issue with all this, I will try to fix as soon as possible. Carlos Cuenca _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3656#3656 Posting to http://forum.andromda.org/ is preferr

[Andromda-user] [Hibernate cartridge] [Nulllable]

2005-08-08 Thread gehel
I think I remember you can set the cardinality of that attribute to [0..1] and it works. But I havent used that for quite some time ... -- Jabber : [EMAIL PROTECTED] (feel free to contact me) _ Reply to the post : http://galaxy.andromda.org/

[Andromda-user] [Hibernate cartridge] [Nulllable] Nulllable

2005-08-08 Thread rbonifacio
Hi, there's some way to set that an entity attribute allow null values? Regards. _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3648#3648 Posting to http://forum.andromda.org/ is preferred over posting to the mailin

[Andromda-user] [Hibernate cartridge] [Hibernate support for Database Schemas]

2005-08-08 Thread dbendlin
Carlos, I was trying to write a patch too, but im having the same "too much work" problem, late august is ok, just wanned to know how much time was it goin to take :-) Thanks a lot, I'll wait for you to add this feature. Kind Regards, -- Diego Bendlin ___

[Andromda-user] [Hibernate cartridge] [Hibernate support for Database Schemas]

2005-08-08 Thread Carlos Cuenca
I was planning to do it, but due to my work, I think I won't have time to do it until late august, or begining september. In the mean time any patch is welcome. Regards Carlos Cuenca _ Reply to the post : http://galaxy.andromda.org/for

[Andromda-user] [Hibernate cartridge] [how to set the cascade property arbitrarily]

2005-08-08 Thread [EMAIL PROTECTED]
use this tagged value: @andromda.hibernate.cascade (http://galaxy.andromda.org/docs/andromda-hibernate-cartridge/[EMAIL PROTECTED]) -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _ Reply to the post : http://galaxy.andromda.or

[Andromda-user] [Hibernate cartridge] [how to set the cascade property arbitrarily] how to set the cascade property arbitrarily

2005-08-08 Thread linuxiicnmpl
Hi,all. The default cascade property in hbm.xml is aggregation: lazy-loaded, no cascade composition: eager-loaded, cascade update but I how can I set cascade to, for example, all-delete-orphan? how can I set the cascade whatever the relation is? I am looking forward to your early reply. Th

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?]

2005-08-08 Thread [EMAIL PROTECTED]
seems a low-level problem, JVM or OS related .. it cannot create the process for some reason is ther eanother process still running with the same name ? what OS are you running ? did you try with another JVM, like 1.4 ? -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ ___

[Andromda-user] [Hibernate cartridge] [Schema-creation goal generate Exception?] Schema-creation goal generate Exception?

2005-08-07 Thread safaa
Hi all; Anyone has an idea why I am getting the following Java Exception: [java] [ERROR] java.io.IOException: CreateProcess: C:ProgramsJavajdk1.5.0_01jrebinjava.exe -Dhibernate.dialect=net.sf.hibernate.dialect.MySQLDialect -classpath "C:Documents and SettingsSafaa Hashim.mavenrepository

[Andromda-user] [Hibernate cartridge] [Hibernate support for Database Schemas] Hibernate support for Database Schemas

2005-08-07 Thread dbendlin
Hello Guys, Is there a chance to hace this feature in the next release? I was browsinbg the JIRA and saw that the issue is still open. Thanks a Lot! -- Diego Bendlin _ Reply to the post : http://galaxy.andromda.org/forum/viewtopi

[Andromda-user] [Hibernate cartridge] [how to generate hbm file?] Re: I''m facing the same issue

2005-08-05 Thread [EMAIL PROTECTED]
coocooForMDA wrote: I did go through the starting docs, and the spring how-to but at first glance it seemed like a wild goose chase. Although it is a simple to follow guide I think the meat of the message it should convey is somehow hidden within the maven plugin/script in other words all I go

[Andromda-user] [Hibernate cartridge] [how to generate hbm file?]

2005-08-05 Thread [EMAIL PROTECTED]
Read the bottom of this thread: http://galaxy.andromda.org/forum/viewtopic.php?t=587&highlight=ant (should help you get started with Ant). -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andr

[Andromda-user] [Hibernate cartridge] [how to generate hbm file?] I''m facing the same issue

2005-08-05 Thread coocooForMDA
I am having the same issue as melanie. I did go through the starting docs, and the spring how-to but at first glance it seemed like a wild goose chase. Although it is a simple to follow guide I think the meat of the message it should convey is somehow hidden within the maven plugin/script in

[Andromda-user] [Hibernate cartridge] [class not found problem with unit tests ...]

2005-08-05 Thread [EMAIL PROTECTED]
Yeah definitely: I'll add it to the core project. -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3571#3571 Posting to http://forum.andromda.org/ is preferred

[Andromda-user] [Hibernate cartridge] [class not found problem with unit tests ...]

2005-08-05 Thread gehel
Dummy me ... you are right ! Again, I should have found that one alone. I've been disturbed by the message, I tought the problem was from Hibernate jar. Anyway, could I suggest that the "antlr" jar should be added as a dependency to core by the andromdapp plugin ? I opend a feature request :

[Andromda-user] [Hibernate cartridge] [class not found problem with unit tests ...]

2005-08-05 Thread [EMAIL PROTECTED]
Do have the antlr jar on your classpath?: "Caused by: java.lang.NoClassDefFoundError: antlr/ANTLRException" -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3

[Andromda-user] [Hibernate cartridge] [class not found problem with unit tests ...] class not found problem with unit tests ...

2005-08-05 Thread gehel
I'm having a problem when running my unit tests from maven. I get the following error :     [junit] Running ch.tecost.siems.service.user.SiemsUserServiceTest 0    [main] WARN  net.sf.ehcache.config.Configurator  - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in

[Andromda-user] [Hibernate cartridge] [Error generating DAO with one-to-many (1,1..*) connection] THANX

2005-08-05 Thread sirgb
Thanx -- Ganszky, Balázs _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3548#3548 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list!

[Andromda-user] [Hibernate cartridge] [Error generating DAO with one-to-many (1,1..*) connection]

2005-08-04 Thread [EMAIL PROTECTED]
This is fixed in the current build. -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3524#3524 Posting to http://forum.andromda.org/ is preferred over posting

[Andromda-user] [Hibernate cartridge] [Error generating DAO with one-to-many (1,1..*) connection] Error generating DAO with one-to-many (1,1..*) connection

2005-08-04 Thread sirgb
Hi, I'm using 3.0 (release, binary) If you create a one-to-many connection between two entities, then in the generation of DAO on the "one" side it tries to use in the creation function the parameter as an entity instead of a set or collection... than it comes to an error. If you are us

[Andromda-user] [Hibernate cartridge] [profileMappingsUri]

2005-08-03 Thread billsalvucci
This was a bug. The latest snapshot has the fix. For the benefit of others, here is the custom profile that is now working: Denotes this class is to be treated as a persistable entity.

[Andromda-user] [Hibernate cartridge] [Oracle Dialect and sql-type in DecisionItem.hbm.xml]

2005-08-03 Thread walid
gehel wrote: You should set the "sqlMappingsUri" property in the default namespace to "Oracle9i". That should be sufficient [Wink] (end of quote) Many thanks. It was my fault. This property was set to DB2 :D Walid _ Reply to the post

[Andromda-user] [Hibernate cartridge] [Oracle Dialect and sql-type in DecisionItem.hbm.xml]

2005-08-03 Thread gehel
You should set the "sqlMappingsUri" property in the default namespace to "Oracle9i". That should be sufficient [Wink] -- -- Jabber : [EMAIL PROTECTED] (feel free to contact me) _ Reply to the post : http://galaxy.andromda.org/forum/viewtop

[Andromda-user] [Hibernate cartridge] [Oracle Dialect and sql-type in DecisionItem.hbm.xml] Oracle Dialect and sql-type in DecisionItem.hbm.xml

2005-08-03 Thread walid
Hi, after generating "DecisionItem.hbm" of the Animal Quiz example I found the the sql-types can not be used by oracle. For example the following was generated by Hibernate Cartridge: and I had to chage the sql-type to NUMBER in order to g

[Andromda-user] [Hibernate cartridge] [name generation]

2005-08-02 Thread gehel
Issue created : http://galaxy.andromda.org/jira/browse/UMLMETA-48 Thanks a lot ! -- -- Jabber : [EMAIL PROTECTED] (feel free to contact me) _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3428#3428 Posting to http:/

[Andromda-user] [Hibernate cartridge] [name generation]

2005-08-02 Thread [EMAIL PROTECTED]
Yes currently it just truncates the name after a certain lenght so thats probably what's happening. Can you open a JIRA issue for the UML Metafacades about eforcing unique column names within an EntityAssociationEnd? -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _

[Andromda-user] [Hibernate cartridge] [name generation]

2005-08-02 Thread gehel
I'm suspecting that we have entities with too long names. It seems that the Hibernate cartridge takes only so many chars to generate the name, and we end up with duplicate names. Is it the expected behaviour ? It would be great if the Hibernate catridge could generate unique names (may be en

[Andromda-user] [Hibernate cartridge] [how to generate hbm file?]

2005-08-02 Thread gehel
Actually, the Spring HowTo could help you to understand the basics (http://team.andromda.org/docs/andromda-spring-cartridge/howto.html). You should also read the getting started (http://team.andromda.org/docs/starting.html). If you have any specific question, feel free to ask ! -- -- Jabber :

[Andromda-user] [Hibernate cartridge] [name generation]

2005-08-02 Thread nash360
The first is a composition: (0..n) (1) PLANIFIED_DMA_GROUP_VERSION -- PLANIFIED_DMA and the second is an aggregation: (0..n)

[Andromda-user] [Hibernate cartridge] [

2005-08-01 Thread [EMAIL PROTECTED]
Nope..if you'd like a way to do it, file a JIRA issue for the Hibernate cartridge. -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3386#3386 Posting to http:

[Andromda-user] [Hibernate cartridge] [

2005-08-01 Thread billsalvucci
is there a way to set the insert attribute to false for a property element? _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3385#3385 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list!

[Andromda-user] [Hibernate cartridge] [profileMappingsUri]

2005-08-01 Thread [EMAIL PROTECTED]
Hmm..can you send me a small project as a zip that duplicates it and I'll fix it? -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3379#3379 Posting to http:/

[Andromda-user] [Hibernate cartridge] [profileMappingsUri]

2005-08-01 Thread billsalvucci
Actually, I can't seem to get it to work. I copied the profile.xml from the plugin to my mda/conf/mappings area and changed the ENTITY element to: Denotes this class is to be treated as a persistable entity. AndroEntity

[Andromda-user] [Hibernate cartridge] [profileMappingsUri]

2005-08-01 Thread billsalvucci
It looks like the schema for the profile.xml has changed. Its all spelt out at http://team.andromda.org/docs/profiles.html Sorry for the post. _ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3377#3377 Posting to htt

[Andromda-user] [Hibernate cartridge] [profileMappingsUri] profileMappingsUri

2005-08-01 Thread billsalvucci
Does this property not work in the latest snapshot build. I was using this succesfully to translate AndroEntity in my model to Entity, but ever since I got on the latest snapshot, no code gets generated. If I change my model to use Entity instead of AndroEntity, it all works again. I tried:

  1   2   3   4   5   6   7   8   >