While I don't recommend it, you still could could, using something
like this:
where com.foo.car.people.Engineer extends com.foo.car.Person extends
com.foo.car.BaseDecorator extends transfer.com.TransferDecorator.
Then you could have Manufacturer, Quality, etc., all extend person
with a
I was trying to over complicate things, I think, by trying to work out
how I was going to model via inheritance (and "ISA") the role to
person relationship.
Ie. I was going on the premise of the Engineer ISA user.
Makes it that little bit simpler (for me in this case) when I realised
that a user
You should probably look here:
http://docs.transfer-orm.com/wiki/Persisting_and_Retrieving_Objects.cfm#Object_Retrieval
Use get() to retrieve by primary key
User readByProperty() to retrieve by unique index.
Mark
On Tue, Nov 11, 2008 at 9:57 AM, Ken Cummins <[EMAIL PROTECTED]> wrote:
>
> I fee
I feel almost foolish asking what I think is a simple question. I
have trouble with online docs, and for whatever reason, the Transfer
docs and various articles just haven't settled in...
I've done my share of direct-to-SQL database hacks, and I was taught
all the fancy OO methodologies, but for
J,
Excuse my limited knowledge of transfer, but I was under the
impression that a decorator acts as an extension of a bean... I would
think that the use of any SQL or TQL would reside in the Data layer
within a Gateway or DAO.
I have an application that I use with Mach-II, ColdSpring and I am
tr
>
>
> I assume, now, that the object declaration (in the XML and the TO
> creation too) in this case is redundant, since I am only needing to
> be able to manage the setting/getting of the issuetype id for each
> ticket - which is created within the CAR object via the manytoone
> relationship?
>
Also make sure your definitions path config is from root -
i.e. /mapping/folder/folder
not
foo/bar/thing.
Mark
On Tue, Nov 11, 2008 at 8:12 AM, Jared Rypka-Hauer
<[EMAIL PROTECTED]> wrote:
> On my current project we have a /transfer mapping, and inside that we have
> an autogen folder. But
Hi Jared (and everyone else!)...
Thanks very much for your help.
Makes the path a little clearer for me, most certainly.
For some reason I had it in my mind that I needed to create an object
of type engineeringUser and couldn't work out for the life of me how I
was going to create that object.
On my current project we have a /transfer mapping, and inside that we
have an autogen folder. But yeah, you need to explicitly specify the
path to the generated code folder.
J
On Nov 10, 2008, at 2:44 PM, Paul Marcotte wrote:
> Hi Kevin,
>
> Make sure you have a writable definitions path in
Hi Kevin,
Make sure you have a writable definitions path in your transfer factory
setup.
I usually keep my definitions under my config dir and pass the relative path
"/config/definitions" as the value for definitionPath in transfer factory.
Paul
On Mon, Nov 10, 2008 at 8:25 AM, Kevin Roche <[EM
How this works depends a bit on if you're working in a decorator or
you're working directly with Transfer. Within a decorator
You can do:
Query = Transfer.createQuery("from foo where fooID NOT IN (:list)");
Query.setParam("list","1,2,3,4,5");
myData = transfer.listByQuery(Query);
Or you can d
Chris,
Thank you.
> you can do listByQuery( TQL ) and pass in a TQL statement object
I guess I was trying to see if there was a way to have transfer handle
"all" basic/common query transactions (Like, In, Not In, etc.) without
having to resort to creating additional code or perhaps additional
C
you can do listByQuery( TQL ) and pass in a TQL statement object
Chris
On Mon, Nov 10, 2008 at 11:55 AM, Jorge Loyo <[EMAIL PROTECTED]> wrote:
>
> Is there a method in transfer to get a query from IN or NOT IN?
>
> Something like:
>
> listByPropertyMapList("product.product", params)
>
> where pa
Is there a method in transfer to get a query from IN or NOT IN?
Something like:
listByPropertyMapList("product.product", params)
where params is a structure that contains a list of values for a
column... name="test1,test2"??
--~--~-~--~~~---~--~~
Before posting
Hi,
I am just starting to use Transfer for the first time and I am getting an
error message when I try to create a new Transfer Object.
Error Occurred While Processing Request
D:\Inetpub\wwwroot\model\PageBuilder\data\Package.Package$A6D407E65F0F711133
BB0A5D446C85E2.transfer (The system cannot
Yep! Helps a lot.
You're already moving in the right direction... you have one-to-many
relationships defined for the CAR-User join, which is what you need.
You'll have getEngineeringUser() and setEngineeringUser() on the CAR
object when you call transfer.get("car.generalCar",carID). So you
Hi Jared...
Basically,
I need to be able to assign a role to a user.
and assign a userid for that role for a given "car" - read help desk
ticket.
There are several "steps" through the business rules - help desk
ticket work flow.
I.e. after being entered by customer support (step 1) - if it is a
OK, I have to ask a question about your "ISA" issue before I can
really answer it.
What, specifically, are you trying to accomplish? Are you trying to
guarantee that the user returned by getEngineeringUser() actually has
a role ID that matches the correct value for an engineering user? Or
Yeah, my other task took longer than I expected... but I'm working
thru my response as we speak!
Gimme 10 or 15. :)
J
On Nov 10, 2008, at 8:18 AM, Gavin Baumanis wrote:
>
> Hi Jared,
>
> I think your 30 minutes are well and truly up! ;)
>
> None the less I look forward to your thoughts!
>
>
Hi Jared,
I think your 30 minutes are well and truly up! ;)
None the less I look forward to your thoughts!
On Nov 10, 11:44 pm, Jared Rypka-Hauer <[EMAIL PROTECTED]>
wrote:
> I have a bunch to say, but I have to finish something else first.
> Gimme 30 minutes to get that done and I'll get ba
Hi Nando,
I know what you mean.. about it being easier
but easier doesn't necessarily make it right.
Mind you I'm certainly not saying you're wrong either...
But I figure if "I" am going to do it OO, then it should be OO all the
way.
(Until such time as I say "damn this crap - it's to hard
Hi Nando,
i know what you mean.. abut it being easier
but easier doesnt necessarily make it right.
Mind you I'm certainly not saying you're wrong either...
But I figure if I am going to do it OO, then it should be OO all the
way.
(Until such time as I say day "damn this crap it ain't workin
I have a bunch to say, but I have to finish something else first.
Gimme 30 minutes to get that done and I'll get back to you.
Thanks,
J
On Nov 10, 2008, at 6:22 AM, Gavin Baumanis wrote:
>
> Hi All,
>
> Well I could of course be a complete crazy...
> But I can't seem to find the answer. Despi
Let me explain that a little better ... For me, I find
it easier sometimes to simply set foreign keys like this from a
dropdown populated by a simple query, in the same way as you'd create
this relationship without Transfer.
On Mon, Nov 10, 2008 at 1:43 PM, Nando <[EMAIL PROTECTED]> wrote:
> Gavi
Gavin,
You may not need to model the relationship in Transfer. For me, I find
it easier sometimes to simply set foreign keys like this from a
dropdown. When I don't need to edit both Car and StaffMember at the
same time, I find it easier to keep it simple, as a personal
preference.
If you do mod
Hi All,
Well I could of course be a complete crazy...
But I can't seem to find the answer. Despite a little undr an hour of
searchig through the forums and reading up on composites in the docs.
How do I construct an "ISA" relationship in transfer.xml?
I have an engineering report; (corrective a
Hi Mark,
I just read your reply...
and my initial thoughts to myself, of course, were;
Mark's taken a few too many punches to the head recently of course
it's there
I can see the relationship is mapped I can see the call for the
creation of the TO in the CFML
Sheesh... for someon
Gavin,
There is no object named 'environmentUser'... so how could it be found?
Mark
On Mon, Nov 10, 2008 at 8:52 PM, Gavin Baumanis <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> After a significant search of the group here, the docs website and our
> good friend Mr. google... I seem to be no
Hi everyone,
After a significant search of the group here, the docs website and our
good friend Mr. google... I seem to be no closer to answering my
question - why am I getting this error?
I have included all (what I thought are the relevant bits of code...
so it is a bit lengthy in source code.
29 matches
Mail list logo