JPA的persistence.xml的使用及常见问题(补充)
摘要:接上常见问题4.在J2SE项目中调试,能进行insert等操作,但是就是不能自动创建表.(1)检查xml文件中的数据库方言是否相吻合(可能用的是 Oracle数据库,写成了Mysql的方言)(2)注意hibernate.hbm2ddl.auto属性值5.错误提示,String类型找不到.oracle自增长的类型是 Integer.将实体Bean中对应的Id类型由String-->Integer.
阅读全文
posted @
2011-10-31 16:27
七月逆流
阅读(433)
推荐(0) 编辑
配置JBoss数据源
摘要:当我们在开发数据库应用的时候,一般我们可以引入?数据源,数据源可以减少数据库连接对象的的创建对象,我们知道:数据库连接对象的创建是比较消耗性能的,数据源通过减少数据库对象的创建数量来提升系统的运行性能。在JBoss中,我们如何创建数据源呢?首先,可以在JBoss的文档中寻找到数据源的配置模板,这个配置模板在docs/examples/jca目录下,在这目录下可以看到有各种数据库的配置模板,找到mysql的配置模板,mysql-ds.xml打开,编辑:<?xml version="1.0" encoding="UTF-8"?> <!--
阅读全文
posted @
2011-10-24 17:11
七月逆流
阅读(3539)
推荐(0) 编辑
Singapore radio stations list
摘要:FrequencyStationOperatorLanguageGenre88.3MHz883JiaFMSAFRA RadioChinese, EnglishContemporary hits,English and Chinese88.9MHzBBC World ServiceBBC RadioEnglishNews89.7MHzRia 89.7FMMediaCorpMalayContemporary hits90.5MHzGold 90.5FMMediaCorpEnglishOldies (1960s–1990s)91.3MHzRadio 91.3SPH UnionWorksEnglish
阅读全文
posted @
2011-10-20 13:47
七月逆流
阅读(211)
推荐(0) 编辑
JadEclipse
摘要:download JadClipse JAR click hereInstallation:Put the JadClipse JAR file into the pluginsfolder of your Eclipse installation.Restart Eclipse (eclipse -clean).Get Jad.Put the Jad executable into a directory that is in the execution path of your operating system. Alternatively, you can configure the p
阅读全文
posted @
2011-10-20 10:06
七月逆流
阅读(183)
推荐(1) 编辑
Eclipse建包视图问题
摘要:我想在com.jumu下建一个名为base包 为什么老是会建成 com.jumu.base只是视图的问题,照图里面的,选择Hierarchical就行了
阅读全文
posted @
2011-10-18 13:56
七月逆流
阅读(1129)
推荐(0) 编辑
solution for lost fonts
摘要:开机启动,fonts文件夹字体全部丢失的解决方案
阅读全文
posted @
2011-10-17 12:58
七月逆流
阅读(180)
推荐(0) 编辑
解决tsvncache.exe引起电脑慢的问题
摘要:如果你觉得SVN的cache程序使得你的机器反应很慢的话,那可以参考这个方案.不过可能要改变你以前使用习惯.这个方案有两部分,第一部分是关闭SVN的cache监视;第二部分是显示文件差异时,使用SVN的“check for modifications”显示差异。 1.关闭SVN的cache监视。即关闭tsvncache.exe这个程序对目录的监视。具体操作步骤如下:a) 右击任意目录打开右键菜单,打开"tortoisesvn" => "settings"下的设置窗口b) 找到"icon overlays"的设置项,将"
阅读全文
posted @
2011-10-15 11:15
七月逆流
阅读(214)
推荐(1) 编辑
Eclipse整合JBoss
摘要:因为项目用到EJB.而Tomcat不支持.Weblogic感觉太笨重.下了个Jboss.感受下.Jboss开源(社区)版本还真是难找.找了半天找到一个,整合到Eclipse中,出现不少问题解决如下:1.报错,不能类型转换.在配置文件中增加:2.hanging on "starting" state .因为在Eclipse中设置的Jboss web端口和安装目录下的配置文件中的端口不一致.修改成一致.OK.$JBOSS_HOME/server/default/deploy/jbossweb-tomcat50.sar/server.xmlJBoss的目录结构:
阅读全文
posted @
2011-10-14 15:35
七月逆流
阅读(620)
推荐(1) 编辑
The bug when Use Tomat in Eclipse
摘要:Eclipse forgets to copy the default apps (ROOT, examples, etc.) when it creates a Tomcat folder inside the Eclipse workspace. Go to C:\apache-tomcat-7.0.8\webapps and copy the ROOT folder. Then go to your Eclipse workspace, go to the .metadata folder, and search for "wtpwebapps". You shoul
阅读全文
posted @
2011-10-14 01:27
七月逆流
阅读(232)
推荐(0) 编辑
Target runtime Apache Tomcat is not defined.错误解决方法
摘要:当项目从别处迁移import本机之后,总有些异常出现,很正常.比如lib找不到.webserver target丢失.这都是因为不同的开发环境配置不一致造成的本文解决方法如下Eclipse导入工程后工程上显示一个小红叉,但工程里没有文件错误,也没有语法错误,百思不得其解啊,后来在网上找了一些资料说是项目引用的类库路径有问题。【项目】->【右键】->【build path】->【configure build path】->【libraries】,查看一下引用的类库路径。网上都说是因为这里引用错误引起的,但是我在项目导入的时候做的第一件事情就是修改这里的library,因
阅读全文
posted @
2011-10-13 15:50
七月逆流
阅读(1339)
推荐(0) 编辑
删除JDK报错:Error: could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg'
摘要:I find it surprising that it's so hard to remove. Anyway, to answer your question, I'd look for and delete:c:\windows\system32\java.exec:\windows\system32\javaw.exeOnce those are deleted, you should be fine.That said, I seem to be able to run GWT in hosted mode with Java 1.6.0_14 just fine.
阅读全文
posted @
2011-10-13 14:49
七月逆流
阅读(1337)
推荐(1) 编辑
MyEclipse 8.X 通用算法
摘要:package com.ncs.crack; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class MyEclipseGen { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digita...
阅读全文
posted @
2011-10-12 16:35
七月逆流
阅读(328)
推荐(0) 编辑