美文网首页
JAVA WEB开发笔记

JAVA WEB开发笔记

作者: huchong | 来源:发表于2017-12-21 22:24 被阅读0次

    级联删除(ON DELETE CASCADE
    url: jdbc:mysql://localhost:3306/myblog?useUnicode=true&characterEncoding=utf8
    http://blog.csdn.net/hao366382305/article/details/17586539
    在 @Query 注解中编写 JPQL 语句, 但必须使用 @Modifying 进行修饰. 以通知 SpringData, 这是一个 UPDATE 或 DELETE 操作
    @Query("update Article as a set a.title=?2 where a.title=?1 ")
    void hu(Integer id,String title);

    JSON.stringify
    jQuery ajax - serialize()

    /<![CDATA[/
    /]]>/

    SELECT count(*),article_type.name FROM article LEFT JOIN article_type ON article_type.article_type_id=article.article_type_id GROUP BY article.article_type_id;

    mysqldump -u username -p dbname table1 table2 ...-> BackupName.sql

    数据还原

    mysql -u root -p [dbname] < backup.sq

    canvas-nest.js

    localForage

    semantic-ui

    1.当两边都有关联关系字段,1的这端利用@org.hibernate.annotations.ForeignKey(name = “none”),多的那端在JoinColumn中加上foreignKey = @ForeignKey(name = “none”,value = ConstraintMode.NO_CONSTRAINT)

    2.当只有多的那端有关联字段,一的那段没有关联字段或者关联字段被@Transient所修饰,请在多的那端在JoinColumn中加上foreignKey = @ForeignKey(name = “none”,value = ConstraintMode.NO_CONSTRAINT)

    Nyan Progress Bar

    相关文章

      网友评论

          本文标题:JAVA WEB开发笔记

          本文链接:https://www.haomeiwen.com/subject/chuzwxtx.html