facebook

Oracle Sequence and CMP

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #225298 Reply

    a_matijaca
    Member

    Hi there,

    I have finaly been successful with creating a CMP bean (Weblogic 8.1 and
    Oracle 9i). After a little bit of a struggle with XDoclet on myeclipse 3.8.4
    it all went fine. Now, my question is, is there any documentation or
    samples (within the context of myeclipseide) on how to automatically
    create primary keys using Oracle Sequences (I have the sequence
    already in place). I have seen things like @ejbgen:automatic-key-generation, however, when I have this tag
    in the ejbCreate method, it simply does not seem to generate any
    relavant code at all – it would seem that this tag is completely ignored
    by myeclipseide…. Is there a step-by-step on creating a key using Oracle
    Sequences, Weblogic and myeclipseide all at the same time? Or, do I
    need to make a jdbc call first to get a new key, and then ‘manualy’ add
    set that value to my key (this can be done, but it sucks)…

    Regards, Alex.

    #225301 Reply

    Riyad Kalla
    Member

    Alex,
    Unfortunately there is no document covering the questions you ask, although I would mention that MyEclipse wraps the XDoclet libraries with a front-end GUI and context-sensative autocomplete, so if there is some problem with the processing of the tags themselves, that is likely a bug with XDoclet itself as there is no MyEclipse-specific code executed when the XDoclet process parses the tags and generates resources. Noting this, it frees you up to search for generic XDoclet issues/documentation or help not necessarily tied to MyEclipse.

    Before you get too far in, I would suggest you go to http://xdoclet.sf.net and check their bug tracker to make sure this isn’t a known bug.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Oracle Sequence and CMP

You must be logged in to post in the forum log in