This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pipeline pipeline = jedis.pipelined(); | |
long start = System.currentTimeMillis(); | |
for (int i = 0; i < 100000; i++) { | |
pipeline.set("" + i, "" + i); | |
} | |
List<Object> results = pipeline.execute(); | |
long end = System.currentTimeMillis(); | |
System.out.println("Pipelined SET: " + ((end - start)/1000.0) + " seconds"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.data.test.mapping.usertype; | |
import kr.hconnect.core.json.JsonTextObject; | |
import kr.hconnect.data.model.EntityBase; | |
import lombok.Getter; | |
import lombok.Setter; | |
import org.hibernate.annotations.Columns; | |
import org.hibernate.annotations.Type; | |
import javax.persistence.Column; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.core.json | |
import kr.hconnect.core.ValueObjectBase | |
import beans.BeanProperty | |
import kr.hconnect.core.tools.ScalaHash | |
import com.google.common.base.Objects.ToStringHelper | |
/** | |
* 객체를 JSON 직렬화를 수행하여, 그 결과를 저장하려고 할 때 사용한다. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.data.hibernate.usertype | |
import org.hibernate.usertype.UserType | |
import java.io.Serializable | |
import java.sql.{Types, ResultSet, PreparedStatement} | |
import org.hibernate.engine.spi.SessionImplementor | |
import kr.hconnect.core.json.JsonTextObject | |
import java.util.Objects | |
import org.hibernate.`type`.StandardBasicTypes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.data.test.mapping.usertype; | |
import kr.hconnect.data.model.DateTimeRange; | |
import kr.hconnect.data.model.EntityBase; | |
import lombok.Getter; | |
import lombok.Setter; | |
import org.hibernate.annotations.Columns; | |
import org.hibernate.annotations.Type; | |
import org.joda.time.DateTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.data.hibernate.usertype | |
import org.hibernate.usertype.UserType | |
import java.io.Serializable | |
import java.sql.{Types, ResultSet, PreparedStatement} | |
import org.hibernate.engine.spi.SessionImplementor | |
import org.joda.time.{DateTimeZone, DateTime} | |
import java.util.Objects | |
import org.hibernate.`type`.StandardBasicTypes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.data.jpa.mysql; | |
import lombok.Getter; | |
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; | |
import org.hibernate.Session; | |
import org.hibernate.jdbc.Work; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.mongo.test.music.repositories; | |
import kr.hconnect.mongo.test.music.AbstractIntegrationTest; | |
import kr.hconnect.mongo.test.music.MongoConfiguration; | |
import kr.hconnect.mongo.test.music.model.Album; | |
import kr.hconnect.mongo.test.music.model.AlbumRepository; | |
import kr.hconnect.mongo.test.music.model.Stars; | |
import org.hamcrest.CoreMatchers; | |
import org.junit.Assert; | |
import org.junit.Before; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.mongo.test.music; | |
import com.mongodb.Mongo; | |
import com.mongodb.MongoClient; | |
import kr.hconnect.mongo.test.music.model.AlbumRepository; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.data.mongodb.config.AbstractMongoConfiguration; | |
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories; | |
import org.springframework.transaction.annotation.EnableTransactionManagement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hconnect.mongo.test.music.model; | |
import org.bson.types.ObjectId; | |
import org.springframework.data.querydsl.QueryDslPredicateExecutor; | |
import org.springframework.data.repository.CrudRepository; | |
import org.springframework.stereotype.Repository; | |
import java.util.List; | |
/** |