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
__
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
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
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
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.
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
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
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
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
_
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
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
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!
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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!
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
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
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
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
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
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
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
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
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:
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
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
___
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
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
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
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
___
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
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
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
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
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
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
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
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
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
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
- 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
...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!
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
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/
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
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
___
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
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
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
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/
___
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
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
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
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
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
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
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 :
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
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
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!
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
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
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.
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
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
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
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:/
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
_
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
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 :
The first is a composition:
(0..n)
(1)
PLANIFIED_DMA_GROUP_VERSION -- PLANIFIED_DMA
and the second is an aggregation:
(0..n)
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:
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!
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:/
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
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
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 - 100 of 733 matches
Mail list logo