Search Results for: maven

  • 企业级Javajava-interview-questions-answers

    JPA入门教程 – 终极指南

    编者按:Java持久化API(JPA)是Java语言中的应用程序编程接口规范,在基于Java平台标准版和Java平台企业版的应用程序中,JPA负责管理关系数据。 JPA已经成为事实上的标准,用于编写与数据库交互的代码。也正由于此,我们已经在Java Code Geeks提供了丰富的教程,可以在这里访问这些教程。此外,我们还制作了一本JPA迷你书,它能够帮助你入门JPA,而且顺利过渡到更高级的概念(加入我们的newsletter,可以免费获取)。 现在,我们想要建立一篇独立的、可做参考的文章:提供一个帮助你了解如何使用JPA的框架;并帮助你快速启动你的JPA应用程序开发。开始享受吧! 目录 1. 简介 2. 创建项目 3. 基础知识 3.1. EntityManager和持久化单元(Persistence Unit) 3.2. 事务(Transactions) 3.3. 数据库表(Tables) 4.…

    Read More »
  • Software Development

    Writing Clean Tests – Small Is Beautiful

    We have learned that “clean” unit tests might not be as clean as we think. We have done our best…

    Read More »
  • Java核心

    用于Java和XML绑定的JAXB教程– 终极指南

    Java为处理XML结构和文件提供了一系列的选项。JAXB是其中最常见使用的一种。JAXB全称是Java Architecture for XML Binding。它能够将Java对象装换为XML结构,反过来亦然。JAXB是在JRE 1.6的第一个版本中随着JRE标准包一起发布的。 JAXB的第一个规范在2003年3月完成,实现过程由 Java Specification Request 31: https://jcp.org/en/jsr/detail?id=31所跟踪。在这个规范请求中你可发现很多关于JAXB的成长和所有的改进。 就像刚才提到的,JAXB实在1.6中加入JRE包的。在此之前,要使用它必须将它的包加入到工程中。 在JAXB可以使用之前(很久之前),Java处理XML的方式是DOM: http://www.w3.org/DOM/。这种方式并不是最好的,因为没有很好的抽象来映射XML节点,所有的值类型都被认为是字符串。JAXB有许多的优点,比如面向对象方式的操作XML节点和属性,值类型,注解和本文中将要阐述的其他优点。 本文中的所有例子程序都是使用以下版本来实现的: JRE 1.8.0 for 32b。所使用的IDE是Eclipse…

    Read More »
  • DevOps

    Fuse Fabric Profile Migration for Continuous Delivery

    JBoss Fuse is a powerful distributed integration platform with built in features for centralized configuration management, service discovery, versioning, API…

    Read More »
  • Core Java

    A way to read properties with variable interpolation

    Recently, I tried to define and read a global properties in an application server. The benefit of such property configured…

    Read More »
  • Desktop Java

    Creating a DSL for AWT’s Robot

    The Java SDK ships with the class java.awt.Robot that allows the automation of keyboard and mouse input as well as…

    Read More »
  • DevOps

    Get into Docker

    Have you ever heard about Docker before? Most likely. If not, don’t worry, I’ll try to summarize it for you.…

    Read More »
  • Java

    Java Web App Architecture In Takes Framework

    I used to utilize Servlets, JSP, JAX-RS, Spring Framework, Play Framework, JSF with Facelets, and a bit of Spark Framework.…

    Read More »
  • Enterprise Java

    Hibernate Tutorial – The ULTIMATE Guide (PDF Download)

    EDITORIAL NOTE: In this post, we feature a comprehensive Hibernate Tutorial. Hibernate ORM (Hibernate in short) is an object-relational mapping…

    Read More »
Back to top button