FAQ

On Mar 6, 2009, at 11:27 PM, Øyvind Harboe (JIRA) wrote:

Øyvind Harboe commented on CAY-1037:
------------------------------------

I no longer use DbGenerator. Should DbGenerator be deprecated?

The new MergerContext stuff is a million times better for my
purposes: to add new tables/columns to the database if the model
changed and the database didn't.
I am very much in favor of doing that. In practical terms it means
switching Modeler / Ant / Maven to the MergerContext, and add support
for some missing databases. Wonder if we still need to preserve
"generate all" mode.

Andrus

Search Discussions

  • Tore Halset at Mar 9, 2009 at 10:35 am
    Hello.
    On Mar 9, 2009, at 10:27 , Andrus Adamchik wrote:

    On Mar 6, 2009, at 11:27 PM, Øyvind Harboe (JIRA) wrote:

    Øyvind Harboe commented on CAY-1037:
    ------------------------------------

    I no longer use DbGenerator. Should DbGenerator be deprecated?

    The new MergerContext stuff is a million times better for my
    purposes: to add new tables/columns to the database if the model
    changed and the database didn't.
    I am very much in favor of doing that. In practical terms it means
    switching Modeler / Ant / Maven to the MergerContext, and add
    support for some missing databases. Wonder if we still need to
    preserve "generate all" mode.

    I think the merger stuff (nice name) has some limitations related to
    the order the different tokens are performed preventing us from
    deprecating DbGenerator.

    Within a single entity, different tokens are ordered correctly, but
    there may be some problems with several dependent entities and
    relationships between them. Before this is fixed/improved, I still
    think we need DbGenerator. Sorry.

    Regards,
    - Tore.
  • Andrus Adamchik at Mar 12, 2009 at 11:31 am
    Fair enough. BTW, I am in need of an auto-schema-bootstrap
    functionality (maybe we do it with another DbAdapter decorator??) I
    guess this feature can be done based on DbGenerator as well, as it is
    most useful for the new databases. As e.g. blindly dropping columns in
    an existing database may not be what the user wants.

    Andrus
    On Mar 9, 2009, at 12:34 PM, Tore Halset wrote:

    Hello.
    On Mar 9, 2009, at 10:27 , Andrus Adamchik wrote:

    On Mar 6, 2009, at 11:27 PM, Øyvind Harboe (JIRA) wrote:

    Øyvind Harboe commented on CAY-1037:
    ------------------------------------

    I no longer use DbGenerator. Should DbGenerator be deprecated?

    The new MergerContext stuff is a million times better for my
    purposes: to add new tables/columns to the database if the model
    changed and the database didn't.
    I am very much in favor of doing that. In practical terms it means
    switching Modeler / Ant / Maven to the MergerContext, and add
    support for some missing databases. Wonder if we still need to
    preserve "generate all" mode.

    I think the merger stuff (nice name) has some limitations related to
    the order the different tokens are performed preventing us from
    deprecating DbGenerator.

    Within a single entity, different tokens are ordered correctly, but
    there may be some problems with several dependent entities and
    relationships between them. Before this is fixed/improved, I still
    think we need DbGenerator. Sorry.

    Regards,
    - Tore.
  • Tore Halset at Apr 11, 2009 at 9:00 pm

    On 9. mars. 2009, at 11.34, Tore Halset wrote:

    Hello.
    On Mar 9, 2009, at 10:27 , Andrus Adamchik wrote:

    On Mar 6, 2009, at 11:27 PM, Øyvind Harboe (JIRA) wrote:

    Øyvind Harboe commented on CAY-1037:
    ------------------------------------

    I no longer use DbGenerator. Should DbGenerator be deprecated?

    The new MergerContext stuff is a million times better for my
    purposes: to add new tables/columns to the database if the model
    changed and the database didn't.
    I am very much in favor of doing that. In practical terms it means
    switching Modeler / Ant / Maven to the MergerContext, and add
    support for some missing databases. Wonder if we still need to
    preserve "generate all" mode.

    I think the merger stuff (nice name) has some limitations related to
    the order the different tokens are performed preventing us from
    deprecating DbGenerator.

    Within a single entity, different tokens are ordered correctly, but
    there may be some problems with several dependent entities and
    relationships between them. Before this is fixed/improved, I still
    think we need DbGenerator. Sorry.
    I think I found an easy solution to this now by adding all the
    AddRelationshipToDb tokens at the end. It seem to work for my model..

    Regards,
    - Tore.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedMar 9, '09 at 9:28a
activeApr 11, '09 at 9:00p
posts4
users2
websitecayenne.apache.org

2 users in discussion

Andrus Adamchik: 2 posts Tore Halset: 2 posts

People

Translate

site design / logo © 2023 Grokbase