blob: a52dfc5f22b9f5daf811e99ede6f0036974b8bf5 [file] [log] [blame]
Title: Java Interface to an Existing Database
<H3><A name="JavaInterfacetoanExistingDatabase-JavaInterfacetoanExistingDatabase"></A>Java Interface to an Existing Database</H3>
<P>To quickly start a new project based on an existing database, CayenneModeler &quot;reverse engineering&quot; functionality is used. Cayenne will create an exact model of the database schema, and extrapolate it to the object layer. DataMaps created during reverse engineering will contain metadata for Java business layer. The names of classes and their properties will be compatible with Java naming conventions. E.g for a table called &quot;USER_TYPE&quot;, a class named &quot;UserType&quot; will be created in the mapping. </P>
<P>See the following topics explaining how to reverse engineer a database into a Cayenne model:</P>
<UL>
<LI><A href="create-new-project.html" title="Create New Project">Create New Project</A></LI>
<LI><A href="create-datanode.html" title="Create DataNode">Create DataNode</A></LI>
<LI><A href="reverse-engineer-database.html" title="Reverse Engineer Database">Create New DataMap by reverse engineering database</A></LI>
</UL>