`
文章列表

Hibernate Tutorial

Book: SQL Turning, Database Systems Lock: Optimistic Lock and Pessimistic Lock Database Normalization   Performance:     Extra-lazy "Extra-lazy" collection fetching: individual elements of the collection are accessed from the database as needed. Hibernate tries not to fetch the wh ...
http://javarevisited.blogspot.com/2011/07/java-multi-threading-interview.html   Thread interview questions JavaMulti-threading and concurrency questions are essential part of any Java interview. If you are going for any Java interview on any Investment bank for equities front office position expec ...

Maven Tutorial

Maven Tutorial 1. Maven Description2. Install Maven3. Maven configure file (pom.xml)4. Usecase (Dispatcher) Package Tomcat Deploy Eclipse Third Library Resource: Officical Site Wiki maven常用命令 Maven 3 Central Repository Configure Central Repository Site Gradle Wiki
Central Repository在Maven3中的默认值 {Maven Home}\lib\maven-model-builder-3.0.5.jar --> org/apache/maven/model/pom-4.0.0.xml <?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion> <repositories> <reposito ...
Encapsulation - Hiding the implementation details of a Class. Once a class is Encapsulated then we Cannot directly access that class members. We can achieve encapsulation like the following, Eg: public class <class Name> { private <member_1>; private <member_2>; } In the a ...
Java Create Instance Method   1.NormalStudent stu1 = new Student(1, "NameNornal", 1); 2. Reflection Student stu1 = Class.forName("com.test.vo.Student").newInstance();   See details in code /** * This test class is used for Creating Object Instance. * * https://gith ...
                               Java Concurrency Tutorials/Sources   Book Review -- 《Java Concurrency In Practice》 http://www.baptiste-wicht.com/2010/08/java-concurrency-in-practice-book-review/   Book Review -- 《Java 7 Concurrency Cookbook》 http://www.mkyong.com/book-review/review-java-7-c ...
今天看了Object的equals() and hashCode() method, 做下笔记   equals() method 需要遵守的条件: Reflexive(反射性): X.equals(X) == true, 自身equals Symmetric(对称性): 如果X.equals(Y), 那么Y.equals(X). Transitive(传递性): 如果X.equals(Y) 且Y.equals(Z) , 那么X.equals(Z). Consistent(稳定性):如果X,Y相等,那么X.equals(X) == true, 无论何时。 hashCode( ...
1. Listings: View Directory server\standalone\configuration\standalone.xml Set listings parameter true value <static-resources listings="true"/>  More details: <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" nativ ...

[转] maven常用命令

mvn help:effective-pom 【maven】help插件           01. mvn compile 编译源代码02. mvn test-compile 编译测试代码03. mvn test 运行测试04. mvn package 打包,根据pom.xml打成war或jar      如果pom.xml中设置 war,则此命令相当于mvn war:war      如果pom.xml中设置 jar,则此命令相当于mvn jar:jar05. mvn -Dtest package 打包但不测试。完整命令为:mvn -D maven.test.skip= ...
Oracle ACE and ACE Director 是Oracle都承认的Oracle专家。 到截稿时,全球有407人, 中国公司占21人。   阿里巴巴有5位, enmo 有5位(Oracle咨询公司)   oracle网页:http://apex.oracle.com/pls/otn/f?p=19297:3
Eclipse会检查serialVersionUID,其实定义private static final long serialVersionUID = 1L; 就可以。 serialVersionUID只是序列化转换时的一个判别符(判别类是否改变)。   附件为代码。   public class Address implements Serializable { private static final l ...
StringBuilder是在1.5版本时出现的,是StringBuffer的改进型,速度有所提高,但不支持线程同步了。 所以如果在多线程中使用,还是得用StringBuffer。   那么让我们比较一下两个类,以append方法为例 public final class StringBuffer extends AbstractStringBuilder implements java.io.Serializable, CharSequence { public synchronized StringBuffer append(String str) { ...

Eclipse Tools

1. Eclipse New 菜单配置 Window --> Customize Perspective      
Facade   门面的意识,把子程序都封装起来,形成一个统一的接口(Facade),如图     参考: http://java.dzone.com/articles/design-patterns-uncovered-1 http://userpages.umbc.edu/~tarr/dp/lectures/  
Global site tag (gtag.js) - Google Analytics