One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
/** | |
* WYSIWYG utils | |
* | |
* @namespace WYSIWYGUtils | |
*/ | |
(function() { | |
"use strict"; | |
angular |
drop procedure if exists doWhile; | |
SET @counter=5000; | |
CREATE PROCEDURE doWhile() | |
BEGIN | |
DECLARE i INT DEFAULT 0; | |
WHILE (i <= @counter) DO | |
INSERT INTO `test` (name) values ('loop sample'); | |
SET i = i+1; |
public class ExpressionDrivenDependencyInjection { | |
@Value("${file.root.folder}") | |
private String rootFolder; | |
@Value("${file.pictures.folder}") | |
private String picturesFolder; | |
} |
@MappedSuperclass | |
public abstract class AbstractAuditable<U, PK extends Serializable> extends AbstractPersistable<PK> implements | |
Auditable<U, PK> { | |
// … | |
} |
package com.sample; | |
import org.springframework.data.repository.CrudRepository; | |
import org.springframework.data.rest.core.annotation.RepositoryRestResource; | |
import org.springframework.data.rest.core.annotation.RestResource; | |
/** | |
* This repository provides CRUD operations for {@link ResponsibilityType} objects. | |
* https://docs.spring.io/spring-data/rest/docs/2.2.2.RELEASE/reference/html/#repository-resources.collection-resource | |
*/ |
Install Java JDK 6.0 update 31 on Ubuntu 12.04 LTS | |
Introduction | |
The first question is why are we installing an old JDK. The answer is that Oracle JDK 6.0 update 31 is the JDK recommended by Cloudera when installing CDH4 (Cloudera Distribution Hadoop v4). | |
This is an update to an older version of this post. Mainly I have changed the JDK from 1.6.0_26 to 1.6.0_31 as this is the recommended JDK for CDH4 . | |
Install Java | |
I have a 64 bit version of Ubuntu 12.04 LTS installed, so the instructions below only apply to this OS. |
# Common application properties | |
# https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html | |
# Embedded Server Configuration | |
server.port = 9000 | |
# Management HTTP Server | |
# |
#Spring Data JPA - Advanced SpEL expressions in Query definitions
@Query("select u from User u where u.emailAddress = ?#{principal.emailAddress}")
List<User> findCurrentUserWithCustomQuery();
For more information please visit: https://spring.io/blog/2014/07/15/spel-support-in-spring-data-jpa-query-definitions
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.util.Locale; | |
import java.util.PropertyResourceBundle; | |
import java.util.ResourceBundle; | |