go4it

just do it

2009年7月26日

JPA相关--Annotation

摘要: 1.自定义注解import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;@Target(ElementType.METHOD) //指定可以用在... 阅读全文

posted @ 2009-07-26 12:37 cxccbv 阅读(342) 评论(0) 推荐(0) 编辑

JPA视频学习(六)联合主键

摘要: 1.配置主键类import java.io.Serializable;import javax.persistence.Column;import javax.persistence.Embeddable;/** * 1.提供无参数构造器 * 2.实现序列号接口 * 3.重写hashCode和equals方法 * @author Administrator * */@Embeddable //用在... 阅读全文

posted @ 2009-07-26 11:07 cxccbv 阅读(535) 评论(0) 推荐(0) 编辑

JPA视频学习(五)双向多对多关联配置

摘要: 1.配置persistence.xml和log4j 配置persistence.xml<?xml version="1.0" encoding="UTF-8"?><persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan... 阅读全文

posted @ 2009-07-26 10:16 cxccbv 阅读(437) 评论(0) 推荐(0) 编辑

导航