Re: Entity Modeler

From: Anjo Krank (kran..ogicunited.com)
Date: Wed Aug 02 2006 - 13:52:40 EDT

  • Next message: Mike Schrag: "Re: Entity Modeler"

    No we don't. Apart from building and setup hassles,
    NSPropertyListSerialization is not stable, meaning that you can't be
    sure of the order of your entries and I'm very glad that version
    control now no longer throws a fit when you do light changes in your
    model.

    And as the cayenne serialization should work the same as WOs (Andrus,
    correct me if I'm wrong), this problem should also be fixable.

    I agree that if *I* had written EM, I'd probably have used WO
    classes, but that is just because I am lazy.

    Cheers, Anjo

    Am 02.08.2006 um 17:33 schrieb Pierre Frisch:

    > Or use WO Property List Serializer. This is the main reason I was
    > not in favor or using Cayenne. It has nothing to do with the
    > product but we are developing with WO so we should use the code for
    > compatibility reason.
    >
    > Pierre
    >
    > On 2-Aug-06, at 7:23 AM, Mike Schrag wrote:
    >
    >> One interesting question is whether WO's property list
    >> serialization deserializes a value with a leading zero as a number
    >> or a string? Because this ACTUALLY came across as a number to us,
    >> when you write it back it's going to turn into "4" instead of
    >> "004". Is that going to kill your app? If so, this might need to
    >> be a fix to Cayenne's PropertyListSerializer.
    >>
    >> ms
    >>
    >> On Aug 2, 2006, at 10:10 AM, Watkins, Garry wrote:
    >>
    >>> Thanks for the quick fix. I guess that the numbers is how WO
    >>> sorts the
    >>> parameters when calling the SP.
    >>>
    >>> Garry
    >>>
    >>> -----Original Message-----
    >>> From: Mike Schrag [mailto:mschra..dimension.com]
    >>> Sent: Wednesday, August 02, 2006 10:07 AM
    >>> To: woproject-de..bjectstyle.org
    >>> Subject: Re: Entity Modeler
    >>>
    >>> OK, fixed ... kicking off a build server build now.
    >>>
    >>> On Aug 2, 2006, at 10:03 AM, Mike Schrag wrote:
    >>>
    >>>> Column names that look like numbers ... ugh. OK. Fix coming
    >>>> right up.
    >>>>
    >>>> On Aug 2, 2006, at 9:44 AM, Watkins, Garry wrote:
    >>>>
    >>>>> Entity Modeler is crashing with following stacktrace.
    >>>>>
    >>>>> I am including the offending stored procedure as well. This model
    >>>>> used to load.
    >>>>>
    >>>>> Thanks
    >>>>> Garry
    >>>>>
    >>>>> =============== ClaimSubmitToAdmin.storedProcedure
    >>>>> ==================
    >>>>>
    >>>>> {
    >>>>> arguments = (
    >>>>> {
    >>>>> allowsNull = Y;
    >>>>>
    >>>>> columnName = 003;
    >>>>> externalType = int;
    >>>>> name =
    >>>>> aSubmittedBy;
    >>>>> parameterDirection = 1;
    >>>>>
    >>>>> valueClassName = NSNumber;
    >>>>> valueType = l;
    >>>>> },
    >>>>>
    >>>>> {
    >>>>> allowsNull = Y;
    >>>>> columnName = 004;
    >>>>>
    >>>>> externalType = int;
    >>>>> name = aSubmittedTo;
    >>>>>
    >>>>> parameterDirection = 1;
    >>>>> valueClassName = NSNumber;
    >>>>>
    >>>>> valueType = l;
    >>>>> },
    >>>>> {
    >>>>> allowsNull = Y;
    >>>>>
    >>>>> columnName = 005;
    >>>>> externalType = bit;
    >>>>> name =
    >>>>> bInsertNewRecord;
    >>>>> parameterDirection = 1;
    >>>>>
    >>>>> valueClassName = NSNumber;
    >>>>> valueType = c;
    >>>>> },
    >>>>>
    >>>>> {
    >>>>> allowsNull = Y;
    >>>>> columnName = 002;
    >>>>>
    >>>>> externalType = int;
    >>>>> name = iDefendantCode;
    >>>>>
    >>>>> parameterDirection = 1;
    >>>>> valueClassName = NSNumber;
    >>>>>
    >>>>> valueType = l;
    >>>>> },
    >>>>> {
    >>>>> allowsNull = Y;
    >>>>>
    >>>>> columnName = 001;
    >>>>> externalType = int;
    >>>>> name =
    >>>>> iMatterPlaintiffId;
    >>>>> parameterDirection = 1;
    >>>>>
    >>>>> valueClassName = NSNumber;
    >>>>> valueType = l;
    >>>>> },
    >>>>>
    >>>>> {
    >>>>> allowsNull = Y;
    >>>>> columnName = 000;
    >>>>>
    >>>>> externalType = int;
    >>>>> name = returnValue;
    >>>>>
    >>>>> parameterDirection = 2;
    >>>>> precision = 10;
    >>>>>
    >>>>> valueClassName = NSNumber;
    >>>>> valueType = d;
    >>>>> }
    >>>>> );
    >>>>>
    >>>>> externalName = dbo.CF_Claim_Update_POC_Info;
    >>>>> name = ClaimSubmitToAdmin;
    >>>>> }
    >>>>>
    >>>>> ===============
    >>>>>
    >>>>> org.objectstyle.wolips.eomodeler.model.EOModelException: Failed to
    >>>>> load stored procedure from
    >>>>> '/Users/garry/Documents/_MR/CMPBusinessLogic/CMP.eomodeld/
    >>>>> ClaimSubmitToAdmin
    >>>>> .storedProcedure'.
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.EOStoredProcedure.loadFromF
    >>>>> ile
    >>>>> (EOStor
    >>>>> edProcedure.java:333)
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.EOModel.loadFromFolder
    >>>>> (EOModel.java:5
    >>>>> 36)
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.EOModelGroup.addModelFromFo
    >>>>> lde
    >>>>> r(EOMod
    >>>>> elGroup.java:206)
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.EclipseEOModelGroupFactory.
    >>>>> cre
    >>>>> ateMode
    >>>>> l(EclipseEOModelGroupFactory.java:98)
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.editors.EOModelEditor.init
    >>>>> (EOModelEditor.ja
    >>>>> va:445)
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorManager.createSite
    >>>>> (EditorManager.java:839)
    >>>>>
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorReference.createPartHelper
    >>>>> (EditorReference.jav
    >>>>> a:583)
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorReference.createPart
    >>>>> (EditorReference.java:372)
    >>>>> at
    >>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart
    >>>>> (WorkbenchPartReferenc
    >>>>> e.java:566)
    >>>>> at
    >>>>> org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
    >>>>> at
    >>>>> org.eclipse.ui.internal.presentations.PresentablePart.setVisible
    >>>>> (Presentable
    >>>>> Part.java:140)
    >>>>> at
    >>>>> org.eclipse.ui.internal.presentations.util.PresentablePartFolder.s
    >>>>> ele
    >>>>> ct(Pres
    >>>>> entablePartFolder.java:268)
    >>>>> at
    >>>>> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.sel
    >>>>> ect
    >>>>> (LeftTo
    >>>>> RightTabOrder.java:65)
    >>>>> at
    >>>>> org.eclipse.ui.internal.presentations.util.TabbedStackPresentation
    >>>>> .se
    >>>>> lectPar
    >>>>> t(TabbedStackPresentation.java:394)
    >>>>> at
    >>>>> org.eclipse.ui.internal.PartStack.refreshPresentationSelection
    >>>>> (PartStack.jav
    >>>>> a:1144)
    >>>>> at
    >>>>> org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:
    >>>>> 1097)
    >>>>> at
    >>>>> org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
    >>>>> at
    >>>>> org.eclipse.ui.internal.PartStack.add(PartStack.java:455)
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
    >>>>> at
    >>>>> org.eclipse.ui.internal.PartStack.add(PartStack.java:441)
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorSashContainer.addEditor
    >>>>> (EditorSashContainer.ja
    >>>>> va:60)
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorAreaHelper.addToLayout
    >>>>> (EditorAreaHelper.java:2
    >>>>> 17)
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorAreaHelper.addEditor
    >>>>> (EditorAreaHelper.java:207
    >>>>> )
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorManager.createEditorTab
    >>>>> (EditorManager.java:819
    >>>>> )
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor
    >>>>> (EditorManager
    >>>>> .java:718)
    >>>>> at
    >>>>> org.eclipse.ui.internal.EditorManager.openEditor
    >>>>> (EditorManager.java:679)
    >>>>>
    >>>>> at
    >>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
    >>>>> (WorkbenchPage.ja
    >>>>> va:2586)
    >>>>> at
    >>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
    >>>>> (WorkbenchPage.java:2521
    >>>>> )
    >>>>> at
    >>>>> org.eclipse.ui.internal.WorkbenchPage.access$10
    >>>>> (WorkbenchPage.java:
    >>>>> 2513)
    >>>>>
    >>>>> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:
    >>>>> 2498)
    >>>>>
    >>>>> at org.eclipse.swt.custom.BusyIndicator.showWhile
    >>>>> (BusyIndicator.java:67)
    >>>>>
    >>>>> at
    >>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor
    >>>>> (WorkbenchPage.java:2493)
    >>>>>
    >>>>> at
    >>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor
    >>>>> (WorkbenchPage.java:2478)
    >>>>>
    >>>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
    >>>>> at
    >>>>> org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
    >>>>> at
    >>>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
    >>>>> (EditorUtil
    >>>>> ity.java:275)
    >>>>> at
    >>>>> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
    >>>>> (EditorUtil
    >>>>> ity.java:139)
    >>>>> at
    >>>>> org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open
    >>>>> (OpenActionUtil.java:
    >>>>> 49)
    >>>>> at org.eclipse.jdt.ui.actions.OpenAction.run
    >>>>> (OpenAction.java:190)
    >>>>>
    >>>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
    >>>>> at
    >>>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
    >>>>> (SelectionDisp
    >>>>> atchAction.java:267)
    >>>>> at
    >>>>> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
    >>>>> (SelectionDispatchActi
    >>>>> on.java:243)
    >>>>> at
    >>>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup
    >>>>> .ha
    >>>>> ndleOpe
    >>>>> n(PackageExplorerActionGroup.java:306)
    >>>>> at
    >>>>> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open
    >>>>> (PackageEx
    >>>>> plorerPart.java:651)
    >>>>> at
    >>>>> org.eclipse.jface.viewers.StructuredViewer$2.run
    >>>>> (StructuredViewer.java:817)
    >>>>>
    >>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    >>>>> at
    >>>>> org.eclipse.core.runtime.Platform.run(Platform.java:843)
    >>>>> at
    >>>>> org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    >>>>> at
    >>>>> org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
    >>>>> at
    >>>>> org.eclipse.jface.viewers.StructuredViewer.fireOpen
    >>>>> (StructuredViewer.java:81
    >>>>> 5)
    >>>>> at
    >>>>> org.eclipse.jface.viewers.StructuredViewer.handleOpen
    >>>>> (StructuredViewer.java:
    >>>>> 1069)
    >>>>> at
    >>>>> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen
    >>>>> (StructuredViewer.jav
    >>>>> a:1168)
    >>>>> at
    >>>>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent
    >>>>> (OpenStrategy.java:249)
    >>>>>
    >>>>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:
    >>>>> 243)
    >>>>>
    >>>>> at org.eclipse.jface.util.OpenStrategy$1.handleEvent
    >>>>> (OpenStrategy.java:283)
    >>>>>
    >>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:
    >>>>> 66)
    >>>>> at
    >>>>> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
    >>>>> at
    >>>>> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    >>>>> at
    >>>>> org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    >>>>> at
    >>>>> org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    >>>>> at
    >>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
    >>>>> 3312)
    >>>>> at
    >>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
    >>>>> at
    >>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
    >>>>> 1914)
    >>>>> at
    >>>>> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    >>>>> at
    >>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench
    >>>>> (Workbench.java:419)
    >>>>>
    >>>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench
    >>>>> (PlatformUI.java:
    >>>>> 149)
    >>>>>
    >>>>> at org.eclipse.ui.internal.ide.IDEApplication.run
    >>>>> (IDEApplication.java:95)
    >>>>>
    >>>>> at
    >>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run
    >>>>> (PlatformActivator.
    >>>>> java:78)
    >>>>> at
    >>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAp
    >>>>> pli
    >>>>> cation(
    >>>>> EclipseAppLauncher.java:92)
    >>>>> at
    >>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
    >>>>> (EclipseAp
    >>>>> pLauncher.java:68)
    >>>>> at
    >>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run
    >>>>> (EclipseStarter.java:400)
    >>>>> at
    >>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run
    >>>>> (EclipseStarter.java:177)
    >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >>>>> at
    >>>>> sun.reflect.NativeMethodAccessorImpl.invoke
    >>>>> (NativeMethodAccessorImpl.java:39
    >>>>> )
    >>>>> at
    >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke
    >>>>> (DelegatingMethodAccessorImpl
    >>>>> .java:25)
    >>>>> at java.lang.reflect.Method.invoke(Method.java:585)
    >>>>> at
    >>>>> org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    >>>>> at
    >>>>> org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    >>>>> at
    >>>>> org.eclipse.core.launcher.Main.run(Main.java:977)
    >>>>> at
    >>>>> org.eclipse.core.launcher.Main.main(Main.java:952)
    >>>>> Caused by:
    >>>>> java.lang.ClassCastException: java.lang.Integer
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.EOModelMap.getString
    >>>>> (EOModelMap.java:
    >>>>> 207)
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.AbstractEOArgument.loadFrom
    >>>>> Map
    >>>>> (Abstra
    >>>>> ctEOArgument.java:366)
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.EOArgument.loadFromMap
    >>>>> (EOArgument.jav
    >>>>> a:87)
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.EOStoredProcedure.loadFromM
    >>>>> ap(
    >>>>> EOStore
    >>>>> dProcedure.java:303)
    >>>>> at
    >>>>> org.objectstyle.wolips.eomodeler.model.EOStoredProcedure.loadFromF
    >>>>> ile
    >>>>> (EOStor
    >>>>> edProcedure.java:330)
    >>>>> ... 80 more
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>> Confidential & Privileged
    >>>>>
    >>>>> Unless otherwise indicated or obvious from its nature, the
    >>>>> information contained in this communication is attorney-client
    >>>>> privileged and confidential information/work product. This
    >>>>> communication is intended for the use of the individual or entity
    >>>>> named above. If the reader of this communication is not the
    >>>>> intended
    >>>
    >>>>> recipient, you are hereby notified that any dissemination,
    >>>>> distribution or copying of this communication is strictly
    >>>>> prohibited.
    >>>
    >>>>> If you have received this communication in error or are not sure
    >>>>> whether it is privileged, please immediately notify us by return
    >>>>> e-mail and destroy any copies--electronic, paper or otherwise--
    >>>>> which
    >>>>> you may have of this communication.
    >>>>>
    >>>>>
    >>>>>
    >>>>
    >>>
    >>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Wed Aug 02 2006 - 13:52:49 EDT