GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Creating initial database from multiple SQL files · Issue #228 · javaee-samples/javaee7-samples

Creating initial database from multiple SQL files #228

New issue
Copy link
New issue
Copy link
Open
Open
Creating initial database from multiple SQL files#228
Copy link

Description

@coderoute
coderoute
opened on Jun 12, 2014
Issue body actions

When creating a Java EE application with integration tests, a database often needs to be bootstrapped. Current examples seem to use a single SQL file referenced from persistence.xml using the javax.persistence.schema-generation.create-script-source property.

However, in practice database schema evolves and it is a common practice to apply these changes to production environments using a series of SQL files representing each change (e.g., using c5-db-migration plugin). Maintaining different SQLs for test purposes and another for production purposes is obviously redundant and error prone. Thus, I will like to see an example a JavaEE app that can populate a test/in-memory database using such list of SQL files.

Activity

  1. aslakknutsen commented on Jun 12, 2014

    @aslakknutsen
    aslakknutsen
    on Jun 12, 2014
    Member
    More actions

    @bartoszmajsak something for Arquillian Persistence Extension?

  2. bartoszmajsak commented on Aug 12, 2014

    @bartoszmajsak
    bartoszmajsak
    on Aug 12, 2014
    Contributor
    More actions

    Yeah we can use APE for that. @coderoute how about working together on this sample?

  3. coderoute commented on Aug 14, 2014

    @coderoute
    coderoute
    on Aug 14, 2014
    Author
    More actions

    @bartoszmajsak let me know what you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.