??xml version="1.0" encoding="utf-8" standalone="yes"?>99在线免费观看视频,国产精品久久久久久久久久三级,亚洲综合成人在线http://www.aygfsteel.com/usherlight/archive/2016/09/28/431844.html云自无心水自?/dc:creator>云自无心水自?/author>Wed, 28 Sep 2016 05:13:00 GMThttp://www.aygfsteel.com/usherlight/archive/2016/09/28/431844.htmlhttp://www.aygfsteel.com/usherlight/comments/431844.htmlhttp://www.aygfsteel.com/usherlight/archive/2016/09/28/431844.html#Feedback0http://www.aygfsteel.com/usherlight/comments/commentRss/431844.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/431844.html在日志文件中看到q个错误信息Cause: java.sql.SQLException: #HY000

后来才知道这是因为数据库中有个别字段要求不能为空, 但是insert语句中没有提供数据,造成了这个错误?/p>

关键是错误信息不明确直观Q不Ҏ(gu)知道是这个原?/p>




]]>
我觉得最好用的mysql客户端工PHeidiSqlhttp://www.aygfsteel.com/usherlight/archive/2011/08/08/355998.html云自无心水自?/dc:creator>云自无心水自?/author>Mon, 08 Aug 2011 02:36:00 GMThttp://www.aygfsteel.com/usherlight/archive/2011/08/08/355998.htmlhttp://www.aygfsteel.com/usherlight/comments/355998.htmlhttp://www.aygfsteel.com/usherlight/archive/2011/08/08/355998.html#Feedback4http://www.aygfsteel.com/usherlight/comments/commentRss/355998.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/355998.html
HeidiSql是一家d国公司研发的轻量U的Q开源mysql客户端工兗体U十分小巧,可是十分实用?br />
我之所以喜Ƣ的原因Q?br />1Q有导入Q导出的功能Q可以将数据直接从文本文件中导入到数据库的数据表中?br />2Q可以将选中的数据导出成为sql语句
3Q界面布|十分合理,操作?/div>

]]>
IBatis3临近发布正式版了http://www.aygfsteel.com/usherlight/archive/2010/01/15/309705.html云自无心水自?/dc:creator>云自无心水自?/author>Fri, 15 Jan 2010 12:49:00 GMThttp://www.aygfsteel.com/usherlight/archive/2010/01/15/309705.htmlhttp://www.aygfsteel.com/usherlight/comments/309705.htmlhttp://www.aygfsteel.com/usherlight/archive/2010/01/15/309705.html#Feedback4http://www.aygfsteel.com/usherlight/comments/commentRss/309705.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/309705.html 那么IBatis3与IBatis2相比Q究竟变化在哪里呢?
最重要的变化是IBatis3中引入了接口l定QInterface BindingQ的概念。在IBatis2中,没有应用Java5的泛型,所以需要大量用强制类型{换,比如Q?br /> Employee employee = (Employee)sqlMapper.queryForList("getEmployee", 5);
//...and...
List employees = sqlMapper.queryForList("listAllEmployees");
但是在IBatis3中,Ҏ(gu)改变成:
MapperFactory factory = someConfiguration.buildMapperFactory();
EmployeeMapper employeeMapper = factory.getMapper (EmployeeMapper.class);
Employee emp = empMapper.getEmployee(5);
//...and...
List<Employee> employees = empMapper.listAllEmployees();
所以IBatis3臛_需要用Java5以上的版本。上面代码中QEmployeeMapper是一个自定义的接口(注意Q开发h员只需要定义一个接口,不需要提供具体的实现Q?br /> public interface EmployeeMapper {
  Employee getEmployee (int employeeId);
  List<Employee> listAllEmployees();
}
q样p了,IBatis会自动ؓ你生成接口的具体实现。是不是感觉有点P

]]>
hibernate使用annotation来处理onetomanyhttp://www.aygfsteel.com/usherlight/archive/2009/08/10/290529.html云自无心水自?/dc:creator>云自无心水自?/author>Mon, 10 Aug 2009 05:24:00 GMThttp://www.aygfsteel.com/usherlight/archive/2009/08/10/290529.htmlhttp://www.aygfsteel.com/usherlight/comments/290529.htmlhttp://www.aygfsteel.com/usherlight/archive/2009/08/10/290529.html#Feedback0http://www.aygfsteel.com/usherlight/comments/commentRss/290529.htmlhttp://www.aygfsteel.com/usherlight/services/trackbacks/290529.html 1. 数据库的表结?br /> CREATE TABLE  `software` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(45) NOT NULL,
  PRIMARY KEY (`id`)
);


CREATE TABLE  `version` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `publish_time` datetime NOT NULL,
  `software_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
);

2. java的class

---------------------------------------
Software.java

import java.util.LinkedHashSet;
import java.util.Set;

import javax.persistence.Entity;

@Entity
public class Software {

    private Long id;
    private String name;
    private Set<Version> versions = new LinkedHashSet<Version>();

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
   
    @OneToMany(cascade = { CascadeType.ALL }, mappedBy="software")
    @JoinColumn(name = "software_id")
    @Fetch(FetchMode.SUBSELECT)
    @OrderBy("id")
    public Set<Version> getVersions() {
        return version;
    }

    public void setVersions(Set<Version> Versions) {
        this.versions = versions;
    }
}

-----------------------------------------------------
Version.java

import java.util.Date;
import javax.persistence.Entity;

@Entity
public class Version{
    private Long id;
    private Date publishTime;
    private Software software;
   
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Date getPublishTime() {
        return publishTime;
    }
    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }
   
    @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "software_id")
    public Software getSoftware() {
        return software;
    }

    public void setSoftware(Software software) {
        this.software = software;
    }
}

3. 试代码

Software software = new Software();
software.setName("Windows");

Version version = new Version;
version.setPublishTime(new Date());
version.setSoftware(software);

software.getVersions().add(version);

software.save();

hibernate会自动生成两条insert语句Q一条是software的insert语句Q一条是version的insert语句?br /> 同样Q如果删除software的话Q也会生成两条delete语句


]]>
MySql Replication的问?/title><link>http://www.aygfsteel.com/usherlight/archive/2009/05/02/268645.html</link><dc:creator>云自无心水自?/dc:creator><author>云自无心水自?/author><pubDate>Sat, 02 May 2009 14:06:00 GMT</pubDate><guid>http://www.aygfsteel.com/usherlight/archive/2009/05/02/268645.html</guid><wfw:comment>http://www.aygfsteel.com/usherlight/comments/268645.html</wfw:comment><comments>http://www.aygfsteel.com/usherlight/archive/2009/05/02/268645.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/usherlight/comments/commentRss/268645.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/usherlight/services/trackbacks/268645.html</trackback:ping><description><![CDATA[MySql中设|了Replication后,q_的用都一直没有问题?br /> 今天Q我在Sql Brower中用Sql命o插入了几条数据却没有被复制?br /> 原因是这LQ我在Sql Browser中没有选择我需要数据更新的数据库,而且使用Mysqlq个数据库作为当前数据库?br /> 而在Sql中指定了我的数据库名Uͼq样Q我的数据如我所愿地q行了更新?br /> 但是Q通过q种方式的操作好像无法被复制?br /> 我思考了一下,觉得应该是Log记录的问题,MySql讄了数据库复制后,有一个Log会记录所有数据库的变_另一个数据库会根据这个Log来进行同L数据操作。这样就实行了数据的复制?br /> 我感觉如果你没有使用use <数据库名>q个命oQ而是使用其他的数据库作ؓ当前数据库,那么Log的记录就~失了,因此复制也将不会q行?img src ="http://www.aygfsteel.com/usherlight/aggbug/268645.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/usherlight/" target="_blank">云自无心水自?/a> 2009-05-02 22:06 <a href="http://www.aygfsteel.com/usherlight/archive/2009/05/02/268645.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>mysql的备份Q务不能正常运?/title><link>http://www.aygfsteel.com/usherlight/archive/2008/12/17/246766.html</link><dc:creator>云自无心水自?/dc:creator><author>云自无心水自?/author><pubDate>Wed, 17 Dec 2008 00:04:00 GMT</pubDate><guid>http://www.aygfsteel.com/usherlight/archive/2008/12/17/246766.html</guid><wfw:comment>http://www.aygfsteel.com/usherlight/comments/246766.html</wfw:comment><comments>http://www.aygfsteel.com/usherlight/archive/2008/12/17/246766.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/usherlight/comments/commentRss/246766.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/usherlight/services/trackbacks/246766.html</trackback:ping><description><![CDATA[mysql安装调试完毕Q正式投入运行后Q马上进行了mysql备䆾d的生成。结果第二天一看,q没有能够如愿地生成备䆾文g?br /> 马上开始查扑֎因。首先在mysql administrator里立卌行备份Q务,没有问题Q备份文件很快就生成了。但备䆾d是不能正确执行?br /> 在事件查看器里发Cmysql的错误日志,root@localhost(password: no)access denied, error number: 1045?br /> 奇怪,root@localhost无法d数据库?可是dmysql administratorQƈ且在里面单独q行backup都是正常的啊?br /> 冷静一下,在windows控制面板的计划Q务里Q找到数据库备䆾的计划Q?Mysql5.X的备份计划实际上是生成了一个windows的计划Q务,执行其设|好的脚本),查看了一下脚本,q没有什么问题?br /> 再仔l研I了一下,发现问题应该是在password:no上,相当于试图不提供密码而用root@localhostq行备䆾Q所以出错了。那么如何改正呢?br /> 最后发现问题是在;mysql_user_connection.xml里。这个文仉包含了mysqld用的别名信息。结果不知道是什么原因这个文仉相同的别名出C两次Q第一ơ的配置里密码ؓI,而第二次的配|是正确的?br /> <br />   <last_connection>2</last_connection><br />   <password_storage_type>3</password_storage_type><br />   <user_connection><br />     <connection_name></connection_name><br />     <username>root</username><br />     <hostname>localhost</hostname><br />     <port>3306</port><br />     <schema></schema><br />     <advanced_options/><br />     <storage_path></storage_path><br />     <notes></notes><br />     <connection_type>0</connection_type><br />     <storage_type>2</storage_type><br />     <password_storage_type>3</password_storage_type><br />     <password/><br />   </user_connection><br />   <user_connection><br />     <connection_name>proddb</connection_name><br />     <username>root</username><br />     <hostname>localhost</hostname><br />     <port>3306</port><br />     <schema>message</schema><br />     <advanced_options/><br />     <storage_path></storage_path><br />     <notes></notes><br />     <connection_type>0</connection_type><br />     <storage_type>2</storage_type><br />     <password_storage_type>3</password_storage_type><br />     <password/><br />   </user_connection><br />   <user_connection><br />     <connection_name>proddb</connection_name><br />     <username>root</username><br />     <hostname>localhost</hostname><br />     <port>3306</port><br />     <schema>message</schema><br />     <advanced_options/><br />     <storage_path></storage_path><br />     <notes></notes><br />     <connection_type>0</connection_type><br />     <storage_type>1</storage_type><br />     <password_storage_type>3</password_storage_type><br />     <password>9D203859E</password><br />   </user_connection><br /> <br /> <br /> 而登录mysql administratorӞҎ(gu)last_connection的|使用的是proddb的第二个配置。所以可以正常登录,而且在里面执行脚本,?份都没有问题Q而windows执行计划dӞ通过别名proddb在mysql_user_connection.xml中查找,扑ֈ的是W一个,?中没有密码信息,所以报错?br /> 问题扑ֈ了,解决容易了Q删除mysql_user_connection.xml中的proddb的第一个配|。备份计划Q务果然能够正地执行了?br /> <br /><img src ="http://www.aygfsteel.com/usherlight/aggbug/246766.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/usherlight/" target="_blank">云自无心水自?/a> 2008-12-17 08:04 <a href="http://www.aygfsteel.com/usherlight/archive/2008/12/17/246766.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>q接Oracle 10g时ORA-12514: TNS: 监听q程不能解析在连接描q符中给出的 SERVICE_NAME 错误的解?/title><link>http://www.aygfsteel.com/usherlight/archive/2007/02/12/99566.html</link><dc:creator>云自无心水自?/dc:creator><author>云自无心水自?/author><pubDate>Mon, 12 Feb 2007 15:45:00 GMT</pubDate><guid>http://www.aygfsteel.com/usherlight/archive/2007/02/12/99566.html</guid><wfw:comment>http://www.aygfsteel.com/usherlight/comments/99566.html</wfw:comment><comments>http://www.aygfsteel.com/usherlight/archive/2007/02/12/99566.html#Feedback</comments><slash:comments>50</slash:comments><wfw:commentRss>http://www.aygfsteel.com/usherlight/comments/commentRss/99566.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/usherlight/services/trackbacks/99566.html</trackback:ping><description><![CDATA[最q在Oracle|站上下载一个Oracle 10g安装了一下,只有一张盘Q而且安装时还有一个便L选项Q非常方ѝ?br />可以安装完毕后,使用的时候却遇到了麻烦:如果只是本机的访?sqlplus system/managerq样是没有问题的?br />但是如果使用 sqlplus <a href="mailto:system/manager@orcl">system/manager@orcl</a>的时候却会报ora-12514的错误?br /><br />解决Ҏ(gu)Q?br />1. 打开<OracleHome>/network/admin/listener.ora文gQ找刎ͼ<br /><br />   SID_LIST_LISTENER =<br />   (SID_LIST =<br />     (SID_DESC =<br />       (SID_NAME = PLSExtProc)<br />       (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)<br />       (PROGRAM = extproc)<br />     )<br />   )<br />  2. dQ?br />            (SID_DESC =<br />       (GLOBAL_DBNAME = ORACLE)<br />       (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)  <br />       (SID_NAME = ORACLE)<br />      )<br />  3. 最后变成:<br /> SID_LIST_LISTENER =<br />   (SID_LIST =<br />     (SID_DESC =<br />       (SID_NAME = PLSExtProc)<br />       (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)<br />       (PROGRAM = extproc)<br />     )<br />     (SID_DESC =<br />       (GLOBAL_DBNAME = ORACLE)<br />       (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)  <br />       (SID_NAME = ORACLE)<br />      )<br />   )<br />  4. 保存文gQ重启服务中的TNSListenerQOKQ?br /><br />PS: Oracle10g有一个好处:不再与Tomcat的端口冲H了。原来的Oracle9i安装完成后,8080端口׃被占用,一般都需要改tomcat的端口。现在终于轻松了?img src ="http://www.aygfsteel.com/usherlight/aggbug/99566.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/usherlight/" target="_blank">云自无心水自?/a> 2007-02-12 23:45 <a href="http://www.aygfsteel.com/usherlight/archive/2007/02/12/99566.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SwisSql Oracle to Sql Server3.0(一个从Oracleq移到SqlServer数据库工?的破解手?/title><link>http://www.aygfsteel.com/usherlight/archive/2006/03/31/38561.html</link><dc:creator>云自无心水自?/dc:creator><author>云自无心水自?/author><pubDate>Fri, 31 Mar 2006 15:26:00 GMT</pubDate><guid>http://www.aygfsteel.com/usherlight/archive/2006/03/31/38561.html</guid><wfw:comment>http://www.aygfsteel.com/usherlight/comments/38561.html</wfw:comment><comments>http://www.aygfsteel.com/usherlight/archive/2006/03/31/38561.html#Feedback</comments><slash:comments>23</slash:comments><wfw:commentRss>http://www.aygfsteel.com/usherlight/comments/commentRss/38561.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/usherlight/services/trackbacks/38561.html</trackback:ping><description><![CDATA[     摘要: 最q做一个项目的时候,需要将数据库从原先的SqlServerq移到Oracle中。需要迁Uȝ不仅是数据还需要将表结构、存储过E、视图、触发器.... 所有东襉Kq过厅R于是在|上搜烦了一下,很快扑ֈ了www.swissql.com中提供了q样的工兗但是能下蝲的是30天有效。只能{?000行Sql文本的试用版。自己动手、丰衣食。开始破解:1. 安装SwisSql2. 把SwisSql的Lib?..  <a href='http://www.aygfsteel.com/usherlight/archive/2006/03/31/38561.html'>阅读全文</a><img src ="http://www.aygfsteel.com/usherlight/aggbug/38561.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/usherlight/" target="_blank">云自无心水自?/a> 2006-03-31 23:26 <a href="http://www.aygfsteel.com/usherlight/archive/2006/03/31/38561.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɶ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">۽</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">SHOW</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ĭ</a>| <a href="http://" target="_blank">Ƽ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">ĵ</a>| <a href="http://" target="_blank">ƽԭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ء</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƺ</a>| <a href="http://" target="_blank">ĵ</a>| <a href="http://" target="_blank">˷</a>| <a href="http://" target="_blank">½</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʩ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>