I tried changing the attribute name to not use a capital. That didn't change
anything. I'm still generating code with out those findBy operations.
My class now looks like:
+importantNumber : Long
[EMAIL PROTECTED](importantNumber : Long) : List
Quote:
You've marked them with the query
I'm following the Spring cartridge's how-to as an example of how to create
finders for my entities (no EJB btw). I created operations on my entity exactly
as the example shows, however no findBy methods are generated when I re-run.
All my code is re-generated, but no findBy methods are in it. I
ok i see what you are saying. the business logic is *physically* in the
presentation as in bundled in the rich-client, however *logically* in the
design and actual package namespace it is clearly seperated. I am using
controller classes in the domain that maintain complex business logic so it's
sorry, "it" not "them". *it* was getting late.
but back to your suggestion of remoting, i can't talk directly to the dao's via
remoting can i? i need a service facade right? i'm not sure if there's much
advantage to using remote services in my case. how much less traffic is going
to go accr
ok, i finally found one and how to gen them. this isn't what i was looking for.
assuming i use no remoting is my initial example thread safe?
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1690#1690
Posting to http:
do i have to have a class with the stereotype Service in my model before it
gens ServiceLocator?
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1689#1689
Posting to http://forum.andromda.org/ is preferred over posting
hrmm, it must be something else. all that is generated is my entities, daos,
PrincipleStore, Hibernate Blob and Clob Type, and the CriteriaSearch classes.
i've searched and not found anything and i get no errors during generation.
_
Reply t
How do i turn on the serivce locator code generation in andromda.xml? It is
part of the Spring cartridge right?
here's what i'm doing in andromda.xml
${andromda.modelValidation}
${andromda.xmlValidation}
spring,hibernate,java
file:${basedir}/mda/src
Ok thanks. I think being a spring newbie is leading me to make some dumb
decisions. I guess I had made some assumptions based upon my experience with
multi-tier java apps from a few years ago. I was afraid of using big chunky EJB
entities (oh the horrors of EJB circa 2000) when my client machin
Oh, duh the Service Locator pattern. :-) Yes I had planned on using something
to do the job of a Singleton (and finding it). JNDI is too heavyweight when
everything is located on the client (except for the database and a few ancilary
web services) and I wasn't sure if it was safe to just use a
I'm a Spring newbie. :-)
Is this something I'll find explained in the SpringFramework manual on their
site?
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1680#1680
Posting to http://forum.andromda.org/ is preferr
I'm writing a rich client so I go about getting my spring bean factory a bit
differently... but I wonder if this is thread safe (with SwingWorker threads
running around outside of the event thread).
ClassPathXmlApplicationContext appContext = new
ClassPathXmlApplicationContext(
new S
Thanks Chad!
What prompted this question was me trying to figure out how to implement Unit
of Work (per Fowler) within this approach.
Does anyone have a best practice within the Spring DAO framework for tracking
new, dirty, removed entities and federating inserting new, updating dirty, and
Ok, please excuse me for being a big dumb turd, I haven't touched Java in 3
years.
There's this IoC craze going on and I'm trying to get with the program. I'd
like to understand, what was the design justification in having DAO's generated
for each entity in the domain model and (in my case)
wow, thanks! you rock
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1497#1497
Posting to http://forum.andromda.org/ is preferred over posting to the mailing
list!
---
oops, my bad, I meant 93 jars.
Buildfile: build.xml
init:
run:
[copy] Copying 93 files to
/Users/ryan/Projects/BayPortScratch/andromda-bin-3.1-M1-SNAPSHOT/ant/lib
_
Reply to the post : http://galaxy.andromda.org/forum/vie
I'm not satisfied with number of jars that the project generators, both ant and
maven, think I need to build and run my code. Because my code is going to be
deployed as a rich client I'd like to stick to only what I need. So basically I
should only need the hibernate and spring jars to run my c
created the bugs in JIRA. btw, thanks for the pointer, for some reason I
thought that schemaexport wasn't ported to Hibernate 3. Maybe that was a beta
I'm thinking about.
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?
If so, what has been your experience thus far?
Also, why does AndroMDA ship with hibernate 3 by default? Is some work needed
somewhere to make it more trustworthy with hibernate 3?
_
Reply to the post : http://galaxy.andromda.org/forum/vi
oh wait, it's using the net.sf.hibernate.tool.hbm2ddl.SchemaExport
crap, what if i want to use hibernate 3? there is no hbm2ddl in hibernate 3.
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1449#1449
Posting to htt
The Maven plugin generates sql schema create/drop scripts. how do i get the ant
task to do that?
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1448#1448
Posting to http://forum.andromda.org/ is preferred over posting
It was the andromda-templateengine-freemarker jar. Thanks so much. Why are
there both velocity and freemarker? I've got other issues now, just trodding
through them till I can't get this working with my ant build files.
_
Reply to the post
Yah it can't find the other ones either for spring or java, even though the
jars are in the classpath. BTW, here is what the errors all look like.
ambiguity:~/Projects/BayPort ryan$ ant mda
Buildfile: build.xml
mda:
[andromda] INFO [AndroMDA]
[andromda] INFO [AndroMDA] A n d r o M D
Thanks, yup it's there.
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1435#1435
Posting to http://forum.andromda.org/ is preferred over posting to the mailing
list!
-
ok, understood. i can't try it on any other systems though. i'll try getting
the latest snapshot and doing that first.
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1432#1432
Posting to http://forum.andromda.org/ is
I'm not using maven.
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1430#1430
Posting to http://forum.andromda.org/ is preferred over posting to the mailing
list!
Using Ant and M1-SNAPSHOT I get the following error when trying to generate
code from my model.
--- AndroMDA Exception Recording ---
Version : 3.1-M1-20050616110256
Error ..: Error performing ModelProcessor.process with
model(s) --> '/Users/ryan/Projects/BayPort/mda
Thanks Wouter,
I don't like Maven because I don't like the way it organizes the project
folders, i don't want to change the way my project is organized because it fits
me well, maven is slow, i don't like jelly and neither does the original
developer, and i don't want to learn to write maven
Thanks Chad!
[EMAIL PROTECTED] wrote:
I know some people are using Ant instead of Maven. There isn't anything you
can't do with Ant that you can do with Maven. The only thing is that the the
andromdapp:generate plugin is obviously a Maven plugin and so therefore you'll
miss out on that, b
Before I embark on this voyage, is anyone using Ant instead of Maven? I
absolutely despise Maven and I'm not going to shoe-horn it into my existing
project.
Basically, is there anything that I cannot do with AndroMDA using Ant that I
can with Maven?
Regards,
-ryan
___
What else in Spring do I need to do to make use of this generated code (the
DAO's)? I can't just start calling into it can I?
-ryan
_
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=782#782
Posting to http://forum.an
31 matches
Mail list logo