

Return getSecUserAuthorities().stream().map(e -> e.getSecAuthority()).collect(Collectors.toList()) For more details about how this file should look like go on official documentation. It configures the process of reverse engineering.It contains the database connection details:.The reddish zones are the only ones needing configuration. The only necessary thing in the Maven project’s pom is: My database is Postgresql, if you are using something else, you’ll have to modify the driver in the plugin dependency zone. We’ll modify pom.xml by creating a Ant task runner to generate JPA entities from a given database. The current post describes step by step this process. Of course, there is the idea of running hibernate tools Ant tasks from Maven. Although Maven beautifuly run Ant tasks, I had quite hard time trying to make it work with the latest stable version of hibernate-tools, mostly because all the examples I found are heavily outdated. There is a Maven plugin hibernate3-maven-plugin but I managed to make it work only with 2.2 version, which comes with an old version of hibernate-tools. Hibernate tools allows to generate mapping or Java code through reverse engineering, schema generation through Ant Tasks.
