Add the following to the pom.xml-file:
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.3.0.603</version>
| #!/bin/bash | |
| # Simple script that performs SIPS-operations on mac. This script is created to simplify the actions in regards to sips, and also so that one dont have to | |
| # remember what to do each time regarding the command I always tend to forget..duh.. | |
| # ENjoi! | |
| # | |
| # @version 0.1a | |
| # @author vegaasen | |
| # @since 16.11.2013 |
| function plural(text, count) { | |
| if (count == 0) | |
| { | |
| return ""; | |
| } | |
| else | |
| { | |
| return count + " " + ((count > 1) ? text + "s" : text); | |
| } | |
| } |
It seems like mapping a LOB-type from Hibernate is not as easy as you'd think. If you're like me, you'll toss something like the following annotation to a POJO and hoping that all is fine:
@Lob
@Column(name = "picture")
private byte[] picture;
However, lo and behold - things is not as expected. Hibernate throws all kinds of fancy exceptions - such as:
| /** | |
| * Simplifies the process of unlocking users. | |
| * <p> | |
| * The AD attribute "userAccountControl" may be any of the following | |
| * - 512 Enabled Account (normally this..) | |
| * - 514 Disabled Account | |
| * - 544 Enabled, Password Not Required | |
| * - 546 Disabled, Password Not Required | |
| * - 66048 Enabled, Password Doesn't Expire | |
| * - 66050 Disabled, Password Doesn't Expire |
| /** | |
| * @author <a href="mailto:[email protected]">vegaraa</a> | |
| * @version ??.10.2016 | |
| * @link https://support.oracle.com/epmos/main/downloadattachmentprocessor?attachid=1539554.1%3AOIM11GR2_TUNING&action=inline | |
| * @link https://docs.oracle.com/cd/E52734_01/core/ASPER/oim.htm#ASPER495 | |
| */ | |
| public class CalculateOimThreads { | |
| private static final int NUM_DB_CPU_INSTANCES = 1; | |
| // Look at the scheduled task in OIM |
| @Target({ElementType.TYPE}) | |
| @Retention(RetentionPolicy.RUNTIME) | |
| @Documented | |
| public @interface Job { | |
| String value() default ""; | |
| } |