Skip to content

Instantly share code, notes, and snippets.

View stliu's full-sized avatar

Strong Liu(刘少壮) stliu

View GitHub Profile
build.sh: Could not set maximum file descriptor limit: unlimited
/Users/stliu/projects/jboss/jboss-as/tools/maven/bin/mvn -s tools/maven/conf/settings.xml install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JBoss Application Server: Build Configuration
[INFO] JBoss Application Server: Parent Aggregator
[INFO] JBoss Application Server: Protocol Utilities
[INFO] JBoss Application Server: Controller Client
localhost:~ stliu$ cat .gitconfig
[user]
name = Strong Liu
email = stliu@hibernate.org
st = status
co = checkout
ci = commit
[core]
editor =vi
Session s = openSession();
s.beginTransaction();
Apple a1 = new Apple();
a1.name = "a1";
Bug b1 = new Bug();
b1.name = "b1";
a1.bugs.add( b1 );
s.persist( a1 );
Apple a2 = new Apple();
18:15:08,353 INFO [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.1.0.Beta2
18:15:08,397 WARN [org.jboss.osgi.framework.internal.URLHandlerPlugin] (MSC service thread 1-3) Unable to set the URLStreamHandlerFactory
18:15:08,398 WARN [org.jboss.osgi.framework.internal.URLHandlerPlugin] (MSC service thread 1-3) Unable to set the ContentHandlerFactory
18:15:08,401 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-2) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
18:15:08,415 INFO [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-4) Starting remote JMX connector
18:15:08,536 INFO [org.jboss.as.modcluster] (MSC service thread 1-3) Mod_cluster uses default load balancer provider
18:15:08,612 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) live server is starting wi
@stliu
stliu / gist:1044408
Created June 24, 2011 07:59
ConfiguredClassType#determinType
private ConfiguredClassType determineType() {
- AnnotationInstance entityAnnotation = JandexHelper.getSingleAnnotation(
- classInfo, JPADotNames.ENTITY
- );
- if ( entityAnnotation != null ) {
+ if ( classInfo.annotations().containsKey( JPADotNames.ENTITY ) ) {
return ConfiguredClassType.ENTITY;
}
-
- AnnotationInstance mappedSuperClassAnnotation = JandexHelper.getSingleAnnotation(
diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/ComponentBinding.java b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/ComponentBinding.java
index 66c3cb9..185223c 100644
--- a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/ComponentBinding.java
+++ b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/ComponentBinding.java
@@ -1,7 +1,13 @@
package org.hibernate.metamodel.binding;
+import org.hibernate.metamodel.domain.Component;
+
/**
public class Test {
/**
* 获取最新更新的公共微博消息
*
* @param args
*/
public static void main(String[] args) throws Throwable {
System.setProperty( "weibo4j.oauth.consumerKey", STLIU.CONSUMER_KEY );
System.setProperty( "weibo4j.oauth.consumerSecret", STLIU.CONSUMER_SECRET );
@Entity
//@Access( AccessType.FIELD )
class User {
private String name;
@EmbeddedId
private Address address;
private int version;
@Version
public int getVersion(){}
}
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
[12:58] <sebersole> here are the steps:
[12:58] <sebersole> 1) mark version released in jira
[12:59] <sebersole> 2) get changelog from jira and add to changelog.txt (just follow others)
[12:59] <sebersole> 3) change version in build.gradle
[12:59] <sebersole> 4) commit
[13:00] <sebersole> 5) gradle clean test uploadArtifacts
[13:01] <stliu> 4.1) tag?
[13:01] <sebersole> 6) gradle :release:buildReleaseBundles
[13:02] <sebersole> stliu: i usually tag after everything goes smooth
[13:02] <sebersole> more correct imo