I am testing NHibnernate these days, but I get this kind of error message NHibernate.MappingException: No persister for: HelloNHibernate.vo.People
The cs name, package name are correct, but the console still report this error message.
Finally, I found out the root cause: all mapping files should be set Embedded Resource, then it can execture correctly.
right-click in XXX.hbm.xml->Properties->Build Action="Embedded Resource"
Total Pageviews
2009/09/14
2009/09/13
Telerik Reporting– Quick Start (Part 2)
Check out this SlideShare Presentation:
Telerik Reporting– Quick Start (Part 2)
View more presentations from Guo Albert.
Telerik Reporting– Quick Start (Part 1)
Check out this SlideShare Presentation:
Telerik Reporting– Quick Start (Part 1)
View more presentations from Guo Albert.
Logging Services for .net - log4net
Check out this SlideShare Presentation:
Logging Services for .net - log4net
View more presentations from Guo Albert.
RandomAccessFile Quick Start
Check out this SlideShare Presentation:
RandomAccessFile Quick Start
View more presentations from Guo Albert.
2009/07/21
Rule Engine: Drools .Net
Check out this SlideShare Presentation:
Rule Engine: Drools .Net
View more presentations from Guo Albert.
2009/06/23
GridBagLayout Quick Start
Check out this SlideShare Presentation:
GridBagLayout Quick Start
View more OpenOffice presentations from Guo Albert.
2009/06/04
2009/06/03
A Short Java Socket Tutorial
Check out this SlideShare Presentation:
A Short Java Socket Tutorial
View more OpenOffice presentations from Guo Albert.
2009/05/27
和四種主管溝通的小秘訣
溝通秘訣1:駕馭型--搞定老虎主管
老虎型主管注重結果導向,他就事論事並且有冒險精神。而且老虎主管通常速度很快,與他溝通要直接說重點。
溝通秘訣2:表達型--孔雀主管
與孔雀主管可以多聊家常事務,先建立個人感情再談公事會更為順利,孔雀主管非常有創意,不喜歡太死板的教條。
溝通秘訣3:親和型--無尾熊主管
無尾熊主管重視團隊的和諧氣氛、不喜歡風險,與無尾熊主管溝通要溫和,並且給他多一點決策時間。
溝通秘訣4:分析型--貓頭鷹主管
貓頭鷹主管重視品質,給他的資料要精確、有邏輯。屬下工作要按照一定步驟,並且要注意細節要正確。
http://www.cw.com.tw/article/index.jsp?id=2910
可惜他沒提到無能型的
老虎型主管注重結果導向,他就事論事並且有冒險精神。而且老虎主管通常速度很快,與他溝通要直接說重點。
溝通秘訣2:表達型--孔雀主管
與孔雀主管可以多聊家常事務,先建立個人感情再談公事會更為順利,孔雀主管非常有創意,不喜歡太死板的教條。
溝通秘訣3:親和型--無尾熊主管
無尾熊主管重視團隊的和諧氣氛、不喜歡風險,與無尾熊主管溝通要溫和,並且給他多一點決策時間。
溝通秘訣4:分析型--貓頭鷹主管
貓頭鷹主管重視品質,給他的資料要精確、有邏輯。屬下工作要按照一定步驟,並且要注意細節要正確。
http://www.cw.com.tw/article/index.jsp?id=2910
可惜他沒提到無能型的
2009/04/16
ORA-00932: inconsistent datatypes: expected - got CLOB
As I am doing data query with distinct syntax in select clause, I got this error message:
ORA-00932: inconsistent datatypes: expected - got CLOB
This error message result from Clob limitation:
Therefore, I re-designed my database schema. Save this CLOB column into another table.
ORA-00932: inconsistent datatypes: expected - got CLOB
This error message result from Clob limitation:
- CLOBs don't work like strings. You can't ask for the LENGTH of a CLOB column, for example. You can work around this with PL/SQL calls but it isn't much fun.
- LOBs are not allowed in GROUP BY, ORDER BY, SELECT DISTINCT, aggregates and JOINS
Therefore, I re-designed my database schema. Save this CLOB column into another table.
Labels:
Oracle
ORA-01502 Oracle Index in Unusable State
As I execute sql statement to do search, it return this message unexpectedly:ORA-01502: index 'RSDB.RESUME_PK' or partition of such index is in unusable state
Solution: rebuild this index
After I executed this rebuild action, it turned out to be normal.
Reference
[1] http://www.mydigitallife.info/2006/01/28/ora-01502-oracle-index-in-unusable-state/
Solution: rebuild this index
ALTER INDEX RESUME_PK REBUILD
After I executed this rebuild action, it turned out to be normal.
Reference
[1] http://www.mydigitallife.info/2006/01/28/ora-01502-oracle-index-in-unusable-state/
Labels:
Oracle
2009/04/10
2009/04/09
2009/04/07
PMD
PMD scans Java source code and looks for potential problems like:
- Possible bugs - empty try/catch/finally/switch statements
- Dead code - unused local variables, parameters and private methods
- Suboptimal code - wasteful String/StringBuffer usage
- Overcomplicated expressions - unnecessary if statements, for loops that could be while loops
- Duplicate code - copied/pasted code means copied/pasted bugs
http://pmd.sourceforge.net/
Labels:
Programming
2009/04/06
Utilize Jericho HTML Parser to Resolve NCR Problem
Agenda
http://www.slideshare.net/junyuo/utilize-jericho-html-parser-to-resolve-ncr-problem
- What is NCR (Numeric Character Reference) ?
- Scenario Description
- Problem (XML with NCR)
- Resolution Process
- Result (NCR had been decoded)
http://www.slideshare.net/junyuo/utilize-jericho-html-parser-to-resolve-ncr-problem
2009/04/02
Subscribe to:
Posts (Atom)