hibernate中的类型就是8种基本类型的包装类首字母变为小写,有integer,long,short,float,double,charchter,byte,boolean,当然还包括其他类型如:yes_no,true_false
hibernate中的类型的作用是匹配数据库表中字段的类型和Java类中属性的类型不匹配的问题的一种解决方案,比如string完成从java.lang.Strin...
分类:
Web程序 时间:
2015-06-08 09:52:20
阅读次数:
355
1001 - Another A+BDescriptionGive you an integer a, you are to find two another integers which sum is a....
分类:
其他好文 时间:
2015-06-08 08:26:05
阅读次数:
119
Description
A substring of a string T is defined as:
T(i, k)=TiTi+1...Ti+k-1, 1≤i≤i+k-1≤|T|.
Given two strings A, B and one integer K, we define S, a set of triples (i, j, k):
S = {(i, j, ...
分类:
编程语言 时间:
2015-06-07 23:41:18
阅读次数:
391
1 题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindrome...
分类:
其他好文 时间:
2015-06-07 21:34:42
阅读次数:
123
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动开发 时间:
2015-06-07 20:06:50
阅读次数:
154
function TCustomListBox.GetCount: Integer;begin if Style in [lbVirtual, lbVirtualOwnerDraw] then Result := FCount else Result := Items.Count;e...
分类:
其他好文 时间:
2015-06-07 18:38:22
阅读次数:
103
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.这道题需要在对数时间内求解阶乘中尾端0的个数。阶乘中0的个数是由各项因子中2和5的个数决定的,又由于阶乘是连续n的数的积,所以2的数目比5的数目多,故0的...
分类:
其他好文 时间:
2015-06-07 15:53:47
阅读次数:
88
1224. Spiral
Time limit: 1.0 second
Memory limit: 64 MB
A brand new sapper robot is able to neutralize mines in a rectangular region having integer height and width (N and
M respectively...
分类:
其他好文 时间:
2015-06-07 12:37:35
阅读次数:
164
自动装箱和自动拆箱是简化了基本数据类型和相对应对象的转化步骤(由java编译器处理)例:Integer a=1;//这就是一个自动装箱,如果没有自动装箱的话,需要这样Integer a=new Integer(1) int b=a;//这就是一个自动拆箱,如果没有自动拆箱的话,需要这样:int b....
分类:
其他好文 时间:
2015-06-07 12:20:00
阅读次数:
131
接着上一篇文章,下面我们讨论一下如何利用Parcelable实现Intent之间对象的传递
一、实现对象传递
首先创建User.java实现Parcelable接口:
package org.yayun.demo;
import java.io.Serializable;
import android.R.integer;
import android.os.Parcel;
...
分类:
其他好文 时间:
2015-06-07 11:14:38
阅读次数:
153