1,ADO.NET属于传统的数据访问工具,开发的时候需要我们手动去编写操作数据库的各种操作,当然性能也就不用说了。
2,Nhibernate是从JAVA中移植到.net平台上的,编写映射需要手动编写xml文件,然后生成数据库,
Hibernate优点:
(1)对象/关系数据库映射(Basic O/R Mapping)
它使用时只需要操纵对象,使开发更对象化,抛弃了数...
分类:
Web程序 时间:
2014-06-05 10:16:34
阅读次数:
343
比起POJ弱爆了一题,从后往前扫描一遍,O(n)时间,只要注意各种极端情况即可,不明白通过率为什么只有13%。
#include
#include
using namespace std;
class Solution {
public:
void reverseWords(string &s) {
char* cstr = new char[s.size()+1];
...
分类:
其他好文 时间:
2014-06-05 03:45:47
阅读次数:
221
原题地址:https://oj.leetcode.com/problems/reverse-words-in-a-string/题意:Given
an input string, reverse the string word by word.For example,Given s = "the s...
分类:
编程语言 时间:
2014-06-03 11:13:36
阅读次数:
258
系统最终采用HT for Web的3D框架实现,项目中的程序员也很高兴有这样的机会终于摆脱维护MFC老系统的宿命,虽然大家都只有C++的开发经验,对HTML/CSS/JS并不熟悉,但毕竟HT for Web已经做了极佳的组件封装,CSS和DOM、包括跨平台的兼容性等棘手问题交给HT框架透明处理,程序员只需要掌握基本的js用法就可以快速上手,按HT的说法类比与关系数据库ORM(Object-relational mapping)映射框架,HT提供的是OVM(Object-View mapping)的框架,只需...
分类:
Web程序 时间:
2014-06-03 05:41:51
阅读次数:
316
核心
利用HibernateTools,用POJO类,Mapping映射文件,数据库表有其中的一项,就能生成其他两项。
概述
在使用Hibernate开发系统持久层时,按照一般开发流程,首先会从业务分析中获得业务实体,从而获得系统中真正需要的实体类,然后写Hibernate的mapping映射文件,最后根据映射文件,生成数据库表,以上这三步是Hibernate开发的起始。...
分类:
移动开发 时间:
2014-06-03 00:10:53
阅读次数:
455
In DOS you may have been used to D: to change
to the D drive. Cygwin provides a mapping of DOS/Windows drives to the unix file
system by mapping or mo...
【题目】
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy the following condition:
1 ≤ m ≤ n ≤ length of list.
【题意】
...
分类:
其他好文 时间:
2014-06-01 15:08:34
阅读次数:
237
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:
其他好文 时间:
2014-06-01 09:05:42
阅读次数:
271
【题目】
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total number of ways to decode it.
For example,
Given encoded ...
分类:
其他好文 时间:
2014-06-01 08:59:37
阅读次数:
258