Can the Java – hibernate tool generate JPA POJOs?

Can I know if the Eclipse Plug-in hibernate tool can be used to generate JPA entity @ entity? The generated java files are as follows, not JPA:

package com.test.only.model;    

// Generated Jul 19,2011 12:13:40 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

/**
 * Account generated by hbm2java
 */
public class Account implements java.io.Serializable {

Solution

You only need to select EJB 3 Java 5 as the configuration option when generating

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>