• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Direct to Java Client and frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Direct to Java Client and frameworks


  • Subject: Direct to Java Client and frameworks
  • From: Jarvis Cochrane <email@hidden>
  • Date: Mon, 3 Oct 2005 18:28:24 +0800

Hello,

I'm trying to get my head around Direct to Java Client...

I've created a Framework to contain my EOModel and classes and associated logic. I would like to create a direct to java client as a separate project, which references the framework.

I'm trying to factor my "business logic" out into a framework that doesn't need to know anything about direct to java or web pages or any of that stuff!

Initially things worked ok - the d2jc application would allow me to create data records, and perform searches, and so on.

The next step was to add an awakeFromInsertion() method on one of the classes in my framework to supply default values for properties. This doesn't appear to be being invoked on the client (no default values), but is invoked on the server when the client saves the data record (which means that it changes the value that user has entered!).

I've tried reading Apple's documentation, but I can't make head nor tail of it - at least where this issue is concerned.

So... How do you set up a d2jc project / application to say "use the model and classes from this framework", and "use the server side method in preference to a local method"?

Hoping someone can help,

jarvis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Direct to Java Client and frameworks
      • From: Robert Walker <email@hidden>
    • Re: Direct to Java Client and frameworks
      • From: email@hidden
  • Prev by Date: Re: Good and handy NSTimestamp utilites...
  • Next by Date: Re: Good and handy NSTimestamp utilites...
  • Previous by thread: Re: Good and handy NSTimestamp utilites...
  • Next by thread: Re: Direct to Java Client and frameworks
  • Index(es):
    • Date
    • Thread