07 2012 档案

摘要:package com.cg.foo;// Generated 2012-7-19 11:40:57 by Hibernate Tools 3.4.0.CR1import java.util.Date;import java.util.HashSet;import java.util.Set;/** * TUser generated by hbm2java */public class TUser implements java.io.Serializable { private long id; private String name; private String nickname; p 阅读全文
posted @ 2012-07-21 11:36 庚武 阅读(233) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/1515969/exporting-data-in-sql-server-as-insert-intoIn SSMS in the Object Explorer, right click on the database right-click and pick "Tasks" and then "Generate Scripts".This will allow you to generate scripts for a single or all tables, and one o 阅读全文
posted @ 2012-07-21 00:53 庚武 阅读(398) 评论(0) 推荐(0) 编辑
摘要:CREATE table t_card(id bigint identity primary key,card_no varchar(50),person_id bigint foreign key references t_user(id) on delete cascade unique) <?xml version="1.0"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN""http://hibernate. 阅读全文
posted @ 2012-07-19 12:05 庚武 阅读(225) 评论(0) 推荐(0) 编辑
摘要:package com.cg.tests;import java.util.regex.Matcher;import java.util.regex.Pattern;import org.junit.Test;public class TestPatternMatcher { @Test public void TestReplaceAll(){ String s="Hello World ..."; String s2=s.replaceAll("\\.", ""); System.out.println(s2); String s 阅读全文
posted @ 2012-07-09 22:43 庚武 阅读(210) 评论(0) 推荐(0) 编辑
摘要:package com.cg.tests;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.GregorianCalendar;import java.util.TimeZone;import org.junit.Test;public class TestCalendar { @Test public void testCalendar(){ /**按年月日构造日期时间对象**/ GregorianCalendar cal =new GregorianCalendar(1988, 1... 阅读全文
posted @ 2012-07-08 22:40 庚武 阅读(469) 评论(0) 推荐(0) 编辑
摘要:public static <T extends Comparable<? super T>> void sort(List<T> list) { Object[] a = list.toArray(); Arrays.sort(a); ListIterator<T> i = list.listIterator(); for (int j=0; j<a.length; j++) { i.next(); i.set((T)a[j]); } } From: JDK Collections.sort方法 阅读全文
posted @ 2012-07-07 15:02 庚武 阅读(158) 评论(0) 推荐(0) 编辑
摘要:package com.xx.tests;import java.util.HashMap;import java.util.Map;public enum Season { Spring { @Override public String toString() { return "春天"; } }, Summer{ @Override public String toString() { return "夏天"; } }, Autumn{ @Override public String toString() { return "秋天" 阅读全文
posted @ 2012-07-07 09:39 庚武 阅读(310) 评论(0) 推荐(0) 编辑
摘要:package com.cg.test;import java.nio.charset.Charset;import java.util.Iterator;import java.util.Map;import java.util.Set;import org.apache.commons.codec.binary.Hex;public class HexString { /** * @param args */ public static void main(String[] args) throws Exception { String s="1a国"; Sy... 阅读全文
posted @ 2012-07-06 17:05 庚武 阅读(932) 评论(0) 推荐(0) 编辑
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId& 阅读全文
posted @ 2012-07-06 01:59 庚武 编辑
摘要:http://james.newtonking.com/projects/json-net.aspxJson.NETJson.NET is a popular high-performance JSON framework for .NETJson.NET CodePlex ProjectJson.NET DownloadFeaturesFlexible JSON serializer for converting between .NET objects and JSONLINQ to JSON for manually reading and writing JSONHigh perfor 阅读全文
posted @ 2012-07-05 18:17 庚武 阅读(2925) 评论(0) 推荐(0) 编辑
摘要:http://www.eclipse.org/nebula/Nebula is a place where different Eclipse-Projects and Independent developers collaborate on building Custom SWT widgets and reuseable UI-Components useable in UI-Applications built using SWT and JFace.All Nebula components are available on the navigation tree on the le 阅读全文
posted @ 2012-07-05 18:05 庚武 阅读(486) 评论(0) 推荐(0) 编辑
摘要:http://sourceforge.net/projects/jalopy/http://jalopy.sourceforge.net/existing/index.htmlOverviewJalopy is a source code formatter for the Sun Java programming language. It layouts any valid Java source code according to some widely configurable rules; to meet a certain coding style without putting a 阅读全文
posted @ 2012-07-05 01:27 庚武 阅读(1440) 评论(0) 推荐(0) 编辑
摘要:Workbench User Guide > TasksRunning EclipseD:\devProgram\eclipse-rcp-indigo-SR2-win32-x86_64\eclipse\eclipse.exe -vmargs -Xms512M -Xmx1024M -XX:MaxPermSize=256MD:\devProgram\eclipse-rcp-indigo-SR2-win32-x86_64\eclipse\eclipse.exe -data c:\MyWorkspace -vmargs -Xms512M -Xmx1024M -XX:MaxPermSize=256 阅读全文
posted @ 2012-07-05 00:18 庚武 阅读(526) 评论(0) 推荐(0) 编辑
摘要:http://www.cloudgarden.com/jigloo/IntroductionNote: Jigloo is free for non-commercial use, but purchase of a Professional License is required for commercial use (after successfully evaluating Jigloo).CloudGarden's Jigloo GUI Builder is a plugin for theEclipseJava IDE andWebSphere Studio, which a 阅读全文
posted @ 2012-07-02 13:46 庚武 阅读(1387) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示