Skip to content

Issue with persistence generation, it still using h2 database instead Postgres #2

Open

Description

@steelcorsy

Hi! In first place, thanks for the wonderful tool for generate jsf code.

In second place, sorry, English is not my native language

I am having issues by generating code, i am editting my pom.xml to use with postgres database, maven jdbc drivers are installed correctly, connection to database ok, all is ok.

Project is being generated by using h2 database, pom.xml is already edited for use postgres connection, DS is not being created by last script.

I am doing:

1.- mvn com.jaxio.celerio:bootstrap-maven-plugin:4.0.12:bootstrap

I choose 4 option, empty project.
I am deleting sql folder to avoid script executions problems.
I edit my pom.xml (look uploaded file)
I had installed jdbc drivers (maven postgres jar is same as wildfly deployed jar)

2.- mvn -Pmetadata generate-sources
Printed a "Write metadata.xml file to src/main/config/celerio-maven-plugin/metadata.xml" type message

3.- mvn -Pgen generate-sources

All is ok, then, i got a nice project using h2 database instead postgres

pom.txt

persistence.txt

What is wrong? Do you can post a example about by using real database connections?

Activity

  1. diogenessantoss commented on Dec 13, 2016

    @diogenessantoss

    Hi @steelcorsy, I got able to execute my project with postgresql.
    See my files attached and any doubt you can ask me. I'll try to perform the same way you did, to find your mistake.

    persistence.txt
    pom.txt

  2. steelcorsy commented on Dec 19, 2016

    @steelcorsy
    Author

    Thank you, I am so new by using this tool, I have developments by reusing one above another project with JSF but I want to build a new hybrid j2ee template with this framework, thanks for the support

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