mugwort

Commons for persistence, hibernate, xstreams, enterprise, spring, servlets, ...

License

License

Categories

Categories

Net
GroupId

GroupId

net.thk-systems.commons
ArtifactId

ArtifactId

mugwort
Last Version

Last Version

3.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

mugwort
Commons for persistence, hibernate, xstreams, enterprise, spring, servlets, ...
Project URL

Project URL

https://github.com/ThK-Systems/mugwort
Project Organization

Project Organization

ThK-Systems
Source Code Management

Source Code Management

https://github.com/ThK-Systems/mugwort

Download mugwort

How to add to project

<!-- https://jarcasting.com/artifacts/net.thk-systems.commons/mugwort/ -->
<dependency>
    <groupId>net.thk-systems.commons</groupId>
    <artifactId>mugwort</artifactId>
    <version>3.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.thk-systems.commons/mugwort/
implementation 'net.thk-systems.commons:mugwort:3.9.0'
// https://jarcasting.com/artifacts/net.thk-systems.commons/mugwort/
implementation ("net.thk-systems.commons:mugwort:3.9.0")
'net.thk-systems.commons:mugwort:jar:3.9.0'
<dependency org="net.thk-systems.commons" name="mugwort" rev="3.9.0">
  <artifact name="mugwort" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.thk-systems.commons', module='mugwort', version='3.9.0')
)
libraryDependencies += "net.thk-systems.commons" % "mugwort" % "3.9.0"
[net.thk-systems.commons/mugwort "3.9.0"]

Dependencies

compile (2)

Group / Artifact Type Version
net.thk-systems.commons : cumin jar 4.0.0
org.jasypt : jasypt jar 1.9.2

provided (9)

Group / Artifact Type Version
com.thoughtworks.xstream : xstream jar 1.4.11.1
javax.servlet : javax.servlet-api jar 3.1.0
org.slf4j : slf4j-api jar 1.7.25
org.hibernate : hibernate-core jar 4.3.11.Final
org.hibernate : hibernate-validator jar 5.4.2.Final
org.springframework : spring-core jar 4.3.20.RELEASE
org.springframework : spring-beans jar 4.3.20.RELEASE
org.springframework : spring-orm jar 4.3.20.RELEASE
org.springframework : spring-context jar 4.3.20.RELEASE

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

The development of mugwort will not be continued. There will be no new version and no support anymore.

mugwort

provides some utilities for enterprise software development using spring, hibernate, servlets, xstream, java-bean-validation, ...

Summary

... for using Hibernate and Spring

  • BaseRepository - A very mightfull basic repository to be used with spring and hibernate. (Can also be used with spring-data-jpa for custom repositories.)
  • IdentifiedEntity - A basic class for persisted entities.
  • BaseService - A spring base service, with support for manual transactions (and more to come)
  • SecureEnvironment - Supports encrypted property values.
  • ImmutableCheckInterceptor - To make entities really immutable (and log and suppress attempts to modify them)

... for working with Servlets

  • ServletUtils - Gets headers/cookies/parameters as string lists, gets dump, ...
  • DumpFilter - Used to dump the servlet request.

... for extending XStream

  • MapToAttributesConverter - Converts a map to a list of xml-attributes. The key of the Map becomes the name of the xml-attribute, and the value of the Map becomes the value of the xml-attribute.

... for validating beans

  • Occurence - The annotated list must not have more than one elements, where the specified field (getter) has the specified value
  • OneNotEmpty - At least one of the given fields must be non-empty (for strings, collections and arrays) or non-null (for anything else).
  • DependantNotEmpty - The value of the field 'fieldname' must not be empty, if the value of the file 'dependantField' is equal to the 'dependantValue'.
  • Country - The annotated element must be a valid country code (ISO 3166-1 ALPHA-2 code)
  • Currency - The annotated element must be a valid currency code (ISO 4217 ALPHA)
  • Locale - The annotated element must be a valid locale code

... more to come ...

Documentation

Browse the Javadoc of the latest version.

Installation

<dependency>
  <groupId>net.thk-systems.commons</groupId>
  <artifactId>mugwort</artifactId>
  <version>3.9.0</version>
</dependency>

You can browse maven-central to download the jar or other versions.

Note: mugwort comes with no maven dependencies to spring, hibernate, servlet-api, ... .

Changelog

3.9.0

  • Updated parent pom
  • Use apache common FieldUtils instead of removed cumin ReflectionUtils methods

3.8.2

  • Optimized logging
  • Bugfixes

3.8.1

  • Optimized logging
  • Bugfixes

3.8.0

  • Updated dependencies
  • Moved to GitHub

3.7.0 / 3.7.1 / 3.7.2 / 3.7.3 / 3.7.4

  • Updated dependencies
  • Bugfixes

3.5.0 / 3.6.2

  • Removed ValidatedByValidator
  • Added LocaleValidator

3.4.0

  • Added ValidatedByValidator

3.3.0

  • Added CurrencyValidator

3.2.0

  • Added CountryValidator

3.1.0

  • Added BaseService.runInTransaction

3.0.0

  • Added ConditionalNotEmptyValidator
  • Move to Java 8 (first without changing anything

2.3.0

  • Added OneNotEmptyValidator

2.2.0

  • Added ImmutableCheckInterceptor and @Immutable and @Mutable annotations
  • Added OccurenceValidator
  • Renamed ExtendedEnvironment to SecureEnvironment and added a 'merging' with 'default' environment

2.1.0

  • Added ExtendedEnvironment and JasyptTool

2.0.0

  • Released as 2.0.0 under new maven group id
net.thk-systems.commons

ThK-Systems

Versions

Version
3.9.0
3.8.2
3.8.1
3.8.0
3.7.4
3.7.3
3.7.2
3.7.1
3.7.0
3.6.2
3.6.1
3.5.0
3.4.1
3.4.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0
2.0.0