Hi,

Reading the manual I try to generate Java Entities from Database using SchemaTool and ReverseMappingTool but without success (find the attached BAT file). Is there any real working example where I have to change only the database parameters?

Also I have the following questions?

1. If in Java entity class using annotations I specify more precise the column parameters like length, precision, scale, etc. can I be sure that OpenJPA will generate tables using these parameters?

2. Can I force OpenJPA Reverse Engineering Tool (ReverseMappingTool) to generate Java Entities more precise and to put in annotations more details like:
   @Column(name="Cost_Price", precision=19, scale=4)
   private BigDecimal costPrice;

   @Column(name="Product_Name", length=64)
   private String productName;



Miro.
openjpa.ConnectionURL=jdbc:mysql://localhost:3306/address_book
openjpa.ConnectionDriverName=com.mysql.jdbc.Driver
openjpa.ConnectionUserName=root
openjpa.ConnectionPassword=MySQL

Reply via email to