- 浏览: 5005 次
-
最新评论
文章列表
下划线与驼峰命名转换。
public class Tool{
private static Pattern linePattern = Pattern.compile("_(\\w)");
/**下划线转驼峰*/
public static String lineToHump(String str){
str = str.toLowerCase();
Matcher matcher = linePattern.matcher(str);
St ...
/**
* Map the specified URI.
*/
private final void internalMap(CharChunk host, CharChunk uri,
MappingData mappingData)
throws Exception {
uri.setLimit(-1);
Context[] contexts = null;
Context context = null; ...
举例;
package com.te
public class Student{};
使用
SessionFactory sf = null;
//
String className = ((org.hibernate.impl.SessionFactoryImpl)sf).getImportedClassName("Student");
Assert.assertEquals(className,"com.te.Student");