From: Kai Moritz Date: Sun, 28 Dec 2025 12:34:12 +0000 (+0100) Subject: Beispiel-Content aufgeräumt X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=5839bf6240676b23f6d8e8e01db25c78a7ae70c5;p=website Beispiel-Content aufgeräumt * Alle nicht-zentralen Inhalte aus den Bespiel-Blogartikeln entfernt. * Störendes Markup aus den Beispiel-Blogartikeln entfernt. --- diff --git a/exampleSite/content/blog/2013/article.html b/exampleSite/content/blog/2013/article.html index 050c2d01..a3afa5c8 100644 --- a/exampleSite/content/blog/2013/article.html +++ b/exampleSite/content/blog/2013/article.html @@ -8,15 +8,6 @@ date: "2013-12-06T10:58:17+00:00" title: Combining jetty-maven-plugin and wro4j-maven-plugin for Dynamic Reloading of LESS-Resources url: /combining-jetty-maven-plugin-and-wro4j-maven-plugin-for-dynamic-reloading-of-less-resources/ --- -
-
-
-

Combining jetty-maven-plugin and wro4j-maven-plugin for Dynamic Reloading of LESS-Resources

- -
-

Ever searched for a simple configuration, that lets you use your jetty-maven-plugin as you are used to, while working with LESS to simplify your stylesheets?

You cannot do both, use the Client-side mode of LESS to ease development and use the lesscss-maven-plugin to automatically compile the LESS-sources into CSS for production. That does not work, because your stylesheets must be linked in different ways if you are switching between the client-side mode – which is best for development – and the pre-compiled mode – which is best for production. For the client-side mode you need something like:

  
@@ -235,68 +226,3 @@ url: /combining-jetty-maven-plugin-and-wro4j-maven-plugin-for-dynamic-reloading-
           

What’s next?

We only scrached the surface, of what can be done with wro4j. Based on this configuration, you can easily enable additional features to fine-tune your final build for maximum speed. You really should take a look at the list of available Processors!

-
- -
- - -
-

Leave a Reply

- -
-

Logged in as Kai Moritz. Log out »

- -

-

- - -

- -

-
-
-
- diff --git a/exampleSite/content/blog/2020/comments.html b/exampleSite/content/blog/2020/comments.html index e150735f..1458d3c6 100644 --- a/exampleSite/content/blog/2020/comments.html +++ b/exampleSite/content/blog/2020/comments.html @@ -7,16 +7,6 @@ date: "2020-06-15T19:15:58+00:00" title: hibernate4-maven-plugin url: /hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/ --- -
-
-
-

hibernate4-maven-plugin

- -
-
-

A simple Plugin for generating a Database-Schema from Hibernate 4 Mapping-Annotations

Hibernate comes with the buildin functionality, to automatically create or update the database schema. This functionality is configured in the session-configuraton via the parameter hbm2ddl.auto (see Hibernate Reference Documentation – Chapter 3.4. Optional configuration properties). But doing so is not very wise, because you can easily corrupt or erase your production database, if this configuration parameter slips through to your production environment.

@@ -30,449 +20,3 @@ url: /hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-f

Try it out now!

-
- -
- -

15 Responses to “hibernate4-maven-plugin”

- -
    -
  1. -
    -
    - Jukes says: -
    - -

    - Hi thanks a lot for making this plugin available, great work!!
    - I have a problem generating postgres schema. Looks like the plugin ignores the data type when adding default values and that yields a syntax error from Postgres. Or maybe I’m doing something wrong. I’m using version 1.0.3.

    -

    For example I have in java:

    -

    - @Column(name = “financialEnabled”, nullable = false, columnDefinition = “default TRUE”)
    - private boolean financialEnabled; -

    -

    - Generated SQL is:
    - financialEnabled default TRUE not null, -

    -

    As you can see the data type boolean is not translated to the SQL script. Thanks a lot for your help.

    -
    - Reply -
    -
    -
      -
    • -
      -
      - Kai Moritz says: -
      - -

      - This plugin is only a tool to automate the generation of the SQL in your development-environment.
      - Questions on how to anotate your code correctly are better asked in a user-forum from hibernate or such.

      -

      - Nevertheless, I think I can give you a usefull hint:
      - You are overwriting the automatically generated column-definition with “default TRUE”.
      - Try it with

      -

      - @Column(name = “financialEnabled”, nullable = false)
      - private boolean financialEnabled;

      -
      - Reply -
      -
      -
    • -
    -
  2. -
  3. -
    -
    - Milios says: -
    - -

    Hi,

    -

    - looks like a very nice plugin. Unfortunately, part of our entities are in other modules/dependencies.
    - Do you plan to add the possibility to scan also for dependencies of the project or at least of the plugin?

    -

    Also, when I only want to generate the SQL and use the following configuration, I got nothing.

    -

    Config:

    -

    - de.juplo
    - hibernate4-maven-plugin
    - 1.0.2

    -

    - true
    - SCRIPT
    - NONE
    - com.deutscheboerse.hibernate.PostgreSQLDialect
    - ${project.build.directory}/hibernate4/cmm-schema.sql

    -

    - com.deutscheboerse.energy
    - energy-commons-hibernate
    - ${commons.hibernate.version}

    -

    - org.springframework.security
    - spring-security-core
    - ${spring.security.version}

    -

    - org.slf4j
    - slf4j-log4j12
    - ${slf4j.version}

    -

    - Output:
    - mvn hibernate4:export -e
    - [INFO] Error stacktraces are turned on.
    - [INFO] Scanning for projects…
    - [INFO]
    - [INFO] ————————————————————————
    - [INFO] Building CMM WAR 1.0.0-RC5-SNAPSHOT
    - [INFO] ————————————————————————
    - [INFO]
    - [INFO] — hibernate4-maven-plugin:1.0.2:export (default-cli) @ cmm-war —
    - [INFO] Scanning directory D:\_dev\work\ii\src\cmm\trunk\cmm-war\target\classes f
    - [INFO] No hibernate-properties-file found! (Checked path: D:\_dev\work\ii\src\cm
    - [INFO] Gathered hibernate-configuration (turn on debugging for details):
    - [INFO] hibernate.dialect = com.deutscheboerse.hibernate.PostgreSQLDialect
    - [INFO] HHH000400: Using dialect: com.deutscheboerse.hibernate.PostgreSQLDialect
    - [INFO] ————————————————————————
    - [INFO] BUILD SUCCESS
    - [INFO] ————————————————————————
    - [INFO] Total time: 10.932s
    - [INFO] Finished at: Thu Oct 10 12:51:05 UTC 2013
    - [INFO] Final Memory: 9M/23M
    - [INFO] ————————————————————————

    -

    - Thanks for any help,
    - Milos. -

    -
    - Reply -
    -
    -
      -
    • -
      -
      - Kai Moritz says: -
      - -

      - Yes, I am working on the possibility, to scan for annotations in dependencies.
      - Unfortunatly, I have no example-project for this use-case by hand.
      - It would help a lot, if you could provide a sample-project on github or such. -

      -

      Greetings kai

      -
      - Reply -
      -
      - -
    • -
    -
  4. -
  5. -
    -
    - Pedro says:
    - - - -

    Following my previous question, here is the debug info

    -

    [DEBUG] Dependency: /Users/pmarques/.m2/repository/org/springframework/security/spring-security-acl/3.1.4.RELEASE/spring-security-acl-3.1.4.RELEASE.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/atomikos-util/3.6.5/atomikos-util-3.6.5.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-api/3.6.5/transactions-api-3.6.5.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/javax/transaction/transaction-api/1.1/transaction-api-1.1.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jdbc-deprecated/3.6.5/transactions-jdbc-deprecated-3.6.5.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jdbc/3.6.5/transactions-jdbc-3.6.5.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jta/3.6.5/transactions-jta-3.6.5.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions/3.6.5/transactions-3.6.5.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0.1/geronimo-jta_1.0.1B_spec-1.0.1.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jms-deprecated/3.6.5/transactions-jms-deprecated-3.6.5.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jms/3.6.5/transactions-jms-3.6.5.jar
    - [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-hibernate3/3.6.5/transactions-hibernate3-3.6.5.jar
    - [INFO] Scanning directory /target/classes for annotated classes…

    - -
    - Reply
    -
    -
  6. -
  7. -
    -
    - Pedro says:
    - - - -

    Hi,

    -

    I have the following problem.
    - The project that I use to test (and use the plugin) has the annotated classes as a dependency.
    - I am getting the error:
    - No annotated classes found in directory /target/classes

    -

    Shouldn’t the plugin scan all the dependencies also?

    -

    Thanks,
    - Pedro.

    - -
    - Reply
    -
    -
      -
    • -
      -
      - Kai Moritz says:
      - - - -

      Hi Pedro,

      -

      I think, that your observation is right.
      - But otherwise, dependencies should only be scanned if requested, because automatic scanning of the dependencies might lead to errors in other situations.

      -

      If you can make your project available to me (for example via github, or simply by mailing zipped version), I would add a configuration-parameter to enable/disable dependency-scanning and upload the refined plugin to central.

      -

      Regards,

      -

      Kai Moritz

      - -
      - Reply
      -
      - -
    • -
    -
  8. -
  9. -
    -
    - mike says:
    - - - -

    Hello,

    -

    I’m upgrading from hibernate3 to to hibernate4 and have moved from the hibernate3-maven-plugin to this version. I haven’t undertaken (and don’t want to just yet) the big job of changing my hbm mapping files to annotations.

    -

    As far as I can see this is a show stopper for using your nice plugin. Can you please confirm if this is the case and whether you are planning to add support for scanning for hbm files?

    -

    Many thanks,

    -

    Mike Cohen.

    - -
    - Reply
    -
    - -
  10. -
  11. -
    -
    - Victor says:
    - - - -

    Hey I have modified your code to support envers and generate auditing tables, if you want I can send you a patch. Thanks!

    - -
    - Reply
    -
    - -
  12. -
- - - - -
- -

Leave a Reply

- - - - -
- - -

Logged in as Kai Moritz. Log out »

- - - - -

- -

- - -

- -

-
-
-
- diff --git a/exampleSite/content/blog/2021/wp2hugo.md b/exampleSite/content/blog/2021/wp2hugo.md index a614c261..a4e54ce4 100644 --- a/exampleSite/content/blog/2021/wp2hugo.md +++ b/exampleSite/content/blog/2021/wp2hugo.md @@ -15,8 +15,9 @@ parent_post_id: null post_id: "1201" title: 'Implementing The Outbox-Pattern With Kafka - Part 0: The example' url: /implementing-the-outbox-pattern-with-kafka-part-0-the-example/ - +summary: In this part, a small example-project is introduced, that features a component, which has to inform another component upon every succsessfully completed operation. --- + _This article is part of a Blog-Series_ Based on a [very simple example-project](/implementing-the-outbox-pattern-with-kafka-part-0-the-example/) @@ -25,10 +26,6 @@ we will implemnt the [Outbox-Pattern](https://microservices.io/patterns/data/tra - Part 0: The Example-Project - [Part 1: Writing In The Outbox-Table](/implementing-the-outbox-pattern-with-kafka-part-1-the-outbox-table/ "Jump to the explanation what has to be added, to enqueue messages in an outbox for successfully written transactions") -## TL;DR - -In this part, a small example-project is introduced, that features a component, which has to inform another component upon every succsessfully completed operation. - ## The Plan In this mini-series I will implement the [Outbox-Pattern](https://microservices.io/patterns/data/transactional-outbox.html)