Thanks Greg, can you file a bug in the spring cartridge (and Ill fix it),
you can make it use named parameters (that should be the default) however it
shouldnt attempt to set it with the number like you said.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTE
I have an <> class, Document, with this operation:
findEntitiesByDefinitions(
definitions : List ) : List
Visibility: public
Query: true
Scope: classifier
This generates this code:
public
java.util.List findEntitiesByDefinitions(final int transform, final
java.lang.String
Ok took a look at your model, got the same exception. It's because of that
UML usage you had defined, but anyway I fixed the UML metafacades to handle
this, so the next cruise control build should have the fix.
-Original Message-
From: Greg Holmberg [mailto:[EMAIL PROTECTED]
Sent: Friday
Thanks for the update Matthias, yes I've had the same thing happen...it
sounds like it's definitely a Magic Draw bug then which should probably be
reported.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthias
Küspert
Sent: Friday, March 04, 2005 1:09
Hi,
I found an old test-project (actually a cartridge) which was made with
MagicDraw 8.x.
I had to open it with MD 9 to adjust the reference to
UMLMetafacadeModel-3.0-RC1-SNAPSHOT.xml.zip.
Since this moment none(!) of my stereotypes were recognized. I then
opened my original (MD8) file with Ema
FYI: from the magicdraw help page:
Operation's Concurrency:
Sequential
--
Callers must coordinate so that only one call to an Instance (on any
sequential Operation) may be outstanding at one time. If simultaneous calls
occur, then the semantics and integrity of the system may not be guara
I think it would be very straightforward to implement that, especially since
we have the 'concurrency' modifier
File an issue in JIRA and assign it to me .. I will take care of it and
update *all* templates this weekend
We have 3 possible values, so I'll have to figure out which one maps onto
the
I see that in
/cartridges/andromda-hibernate/src/templates/hibernate/ejb/HibernateSessionBeanImpl.vsl
and other template files, that it doesn't look possible to have
"synchronized" methods.
Is it difficult to implement?
Thanks again,
skabeat wrote:
Hi,
Is there a way to define synchronized metho
Hmm strange it works here ok...can you send me a model that duplicates this?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Greg
Holmberg
Sent: Friday, March 04, 2005 12:07 PM
To: andromda-user@lists.sourceforge.net
Subject: [Andromda-user] Spring excepti
In yesterday's build (3.0-RC1-20050304063126), I now get this exception
when building:
Main Exception .: Error performing
Cartridge.processTemplateWithModelElements
Root Exception .:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'isExceptionsPresent' in class
org.a
Bernard Sirius wrote:
OK thanks a lot for all your kind and patient answers.
glad it works!!
My app is now reasonably fast.
Everything's fine.
e viva andromda!
bernard
--- Carlos Cuenca <[EMAIL PROTECTED]> wrote:
-
andromda
an
Bernard Sirius wrote:
are you using customized templates or something that
may affect to the
generation process?
Carlos
bernard
that's all.
I thought I got it: I defined as a
property of the a
Can somebody please send me an example of a
project.xml where hibernateProxy is set to true
(shouldn't contain proprietary information :-)
not sure...
bernard
__
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of th
Bernard Sirius wrote:
do not recommend, it should be working, which
version of Andromda are
you using?
RC1-SNAPSHOT
BTW I just saw that hibernate has a faq entry about
this:
How do I set up a 1-to-1 relationship as lazy?
Use
with a proxied class, Foo.
Hi,
Is there a way to define synchronized method in session ejb in hibernate
cartridge? I've tried with various parameters in "Concurrency"
properties in MD but without any success.
Thanks,
Fabrice
---
SF email is sponsored by - The IT Product
Bernard Sirius wrote:
are you doing a "maven -o clean install" or what, in
order to get the
hbm's regenerated?
didn't. just did. doesn't change anything.
what should I see ?
dynamic-insert="true"/dynamic-update="true"? or
what?
no, you should see a line like this:
please, refer to the team server:
http://team.andromda.org/docs/andromda-hibernate-cartridge/namespace.html
sorry for this
Bernard Sirius wrote:
BTW, there's no mention of the
namespace parameter in
http://www.andromda.org/andromda-hibernate-cartridge/namespace.html
bernard
__
Bernard Sirius wrote:
OK, so basically what you are saying is that:
-one-2-one associations shoudn't be modeled as lazy
using the tagged value.
yes
- the only way to get rid of the cascading queries is
to enable proxies
... the easiest way
- proxies should be declared in the hbm's - I've
checked t
Bernard Sirius wrote:
Sorry to be so intrusive :-/
...no problem
now that I've disabled the maxFetchDepth, I bump to
this 31 maximum-for-mysql-joins-problem again.
here's what generated in the applicationContext.xml.
Do you still confirm that it means that proxies are
enabled:
I
Hi,
currently you can create HSQL queries with OCL in the model (through
finder methods), if you want to create native sql's, you can model the
methods with no finder stereotype and then use the createSqlQuery
within it.
Carlos
[EMAIL PROTECTED] wrote:
Can I use the Hibernate Cartridge to
Actually no, it shouldn't be a one-to-one in the hbm.xml, if you'll notice
that the many-to-one that has unique="true" that enforces the fact that it
really is a one-to-one. There are a couple different ways one-to-ones are
structured and the cartridge figures out the appropriate one from your
mod
Hi,
I am trying to bulid a project using the spring cartridge with AndroMDa-maven
and magicDraw but the following error is occuring:
build:start:
multiproject:install-callback:
[echo] Running ejb:install for AndroMDA Spring Example Core Business Tier
ejb:init:
java:prepare-filesystem:
java:c
The hibernate.max_fetch_depth is not currently available as a property in
the cfg.xml...I'll add it.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bernard
Sirius
Sent: Friday, March 04, 2005 7:31 AM
To: Carlos Cuenca; andromda-user@lists.sourceforge.net
Can I use the Hibernate Cartridge to
generate some hibernate supported "Native SQL Queries"? I
didn't see anything in the namespace properties that led me to believe
I could do this.. But I wanted to ask just in case!
Thanks!
-
Gary Pinkham
Architect
Component Technology & Architecture Group (
Hi there,
I have a strange problem. I have a MagicDraw UML model which I used with
the Spring Cartridge of a "quite old" build of 3.0 RC1 Snapshot (January I
guess).
Now I tried to regenerate the code with the current snapshot build
(20050304063126), so I patch the mda\project,xml to include the h
I forgot to mention: all this doesn't solve my problem
at all. because of the maxFetchDepth set to 1, and the
outer-join's being set to auto, I now have 7 SQL
queries generated instead of... who knows. This is for
2 entities, thus in my case the n+1 problem is
actually a (n*3)+1 problem...
don't y
I forgot to mention that I specified
@andromda.hibernate.lazy on BOTH ends of the relation,
just to be sure.
--- Wouter Zoons <[EMAIL PROTECTED]> wrote:
> > I can't figure out how to tell hibernate NOT to
> > eagerly load relations. It seems to be completely
> > ignorant of the "lazy=true" attrib
Thank you for the MaxFetchDepth pointer. Now for the
aggregation/composition issue, I am well aware that
setting an association's type to "composition" will
eagerly load its dependent objects, unless you specify
it to be lazy explicitely using a tag value.
ok, I have an association between a User
Hi huys,
I check-out yesterday the nightly build, and try to run car-rental-system.
No problem in compilation (all log seems to be ok)
but, when i try some use case functionnality, i get this message error !
register car, by exemple)
someone gets a idea ?
*From the navigator:
exception*
javax.ser
Cache is enabled on each hbm mapping of each entity.
Carlos
Bernard Sirius wrote:
OK, the classnotFoundErrors apparently came from the
fact that suddenly the datasource is configured in a
separate xml applicationContext-datasource.xml. I had
to copy/paste the datasource fragment to make i
OK, the classnotFoundErrors apparently came from the
fact that suddenly the datasource is configured in a
separate xml applicationContext-datasource.xml. I had
to copy/paste the datasource fragment to make it work
again.
Here's what I have put in mda's project.xml:
true
1
that generates the foll
Hi,
I'm trying different versions of my UML model as a develop my correct class
diagram. Is there an easy way to get Andromda to generate one class diagram
in an xmi file but ignore another. Ideally, I can have different class
diagrams in the same MagicDraw file but in different Model elements in
Hi,
first of all, currently hibernate cartridge is not mapping compositions
(as they should be done with the "component" element... the good news
about this, is that I plan to do before March 14th).
On the other hand, and based on the information you give on the mail, I
think that the cartrid
This is very strange, since I am using them in all my proyects and it
works perfectly. Which Andromda version are you using?
Carlos
Bernard Sirius wrote:
Hi Carlos,
I followed your advice, but now that proxies are
enabled I get a very strange NoClassDefFoundError,
without a stack trace:
If you want to get the stack trace build with '-e'.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bernard
Sirius
Sent: Friday, March 04, 2005 7:37 AM
To: andromda-user@lists.sourceforge.net
Subject: Re: [Andromda-user] how to specify max_fetch_depth for
Actually you should be able to set it with "hibernateMaxFetchDepth" did you
try that?
-Original Message-
From: Chad Brandon [mailto:[EMAIL PROTECTED]
Sent: Friday, March 04, 2005 7:43 AM
To: 'Bernard Sirius'; 'Carlos Cuenca'; 'andromda-user@lists.sourceforge.net'
Subject: RE: [Andromda-us
And I *have* defined the cglib2 dependency in my
project!
--- Bernard Sirius <[EMAIL PROTECTED]> wrote:
> Hi Carlos,
>
> I followed your advice, but now that proxies are
> enabled I get a very strange NoClassDefFoundError,
> without a stack trace:
>
>
> BUILD FAILED
> File.. C:\Documents
Hi,
I am using MagicDraw Demo version 9.0 with AndroMDA to build a project. My
question is how can I define a constructor using MD? because normally in UML
constructors are underlined.
Thanks,
Régine.
---
SF email is sponsored by - The IT Prod
Hi Carlos,
I followed your advice, but now that proxies are
enabled I get a very strange NoClassDefFoundError,
without a stack trace:
BUILD FAILED
File.. C:\Documents and
Settings\Candide\.maven\cache\maven-test-plugin-1.6.
2\plugin.jelly
Element... junit
Line.. 133
Column 41
java.la
Hi Bernard,
to get rid of all those outer joins when creating a simple query, just
turn on the hibernate proxies. Namespace property "hibernateProxy=true"
Carlos
Bernard Sirius wrote:
Hi!
Again, I have this problem with hibernate: a simple
query generates an incredible amount of SQL. I was
thinki
you're right, it should be a one-on-one .. the foreign key should not be
there
strange indeed, I'm using the same construct in my own models and it's
working fine .. perhaps this bug has been introduced last night ?
Carlos, could you verify Bernard's issue too ? I'm reluctant to update
from the M
Michael,
I don't understand what you want to do, and I have very little time these
days .. please rephrase
read this page if you have a proble with drop-down boxes:
http://team.andromda.org/docs/andromda-bpm4struts-cartridge/howto2.html#Event_Parameters
read this page if you are working with tab
Thank you for the MaxFetchDepth pointer. Now for the
aggregation/composition issue, I am well aware that
setting an association's type to "composition" will
eagerly load its dependent objects, unless you specify
it to be lazy explicitely using a tag value.
ok, I have an association between a User
> I can't figure out how to tell hibernate NOT to
> eagerly load relations. It seems to be completely
> ignorant of the "lazy=true" attribute.
>
it is not
bottom of this page:
http://team.andromda.org/docs/andromda-spring-cartridge/howto2.html
(compositionDefinesEagerLoading)
http://team.andromd
Hi!
Again, I have this problem with hibernate: a simple
query generates an incredible amount of SQL. I was
thinking that specifying outer-join="false" would
solve this, but it doesn't as you probably guess.
I can't figure out how to tell hibernate NOT to
eagerly load relations. It seems to be com
45 matches
Mail list logo