(eclipse helios,mandriva) Schema "dbo" cannot be resolved for table "t_address" [message #666017] |
Mon, 18 April 2011 12:09  |
Eclipse User |
|
|
|
hello,
I'm using eclipse helios on mandriva 2010.2 with SQL Anywhere.
I created a JPA project (with an EJB project aimed at manage the JPA project on a JBOSS server but it's not really the matter now).
there are many entities and this persistence.xml :
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="jpa_soho_2">
<jta-data-source>java:SybaseDB</jta-data-source>
<class>entities.Address</class>
<class>entities.Category</class>
<class>entities.CreditCard</class>
<class>entities.Customer</class>
<class>entities.Item</class>
<class>entities.Order</class>
<class>entities.OrderLine</class>
<class>entities.Product</class>
<class>entities.ValidationException</class>
<properties>
<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="database"/>
<property name="eclipselink.orm.validate.schema" value="false"/>
<property name="eclipselink.target-database" value="Sybase"/>
<property name="eclipselink.target-server" value="JBoss"/>
</properties>
</persistence-unit>
</persistence>
and here is the DS file (on JBOSS):
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- New ConnectionManager setup for Sybase ASE/ASA jConnect driver -->
<!-- Thanks to Marc Zampetti <zampetti@aol.net> -->
<!-- This is a minimal example. See the generic example for other stuff -->
<!-- ===================================================================== -->
<!-- $Id: sybase-ds.xml 23720 2004-09-15 14:37:40Z loubyansky $ -->
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/SybaseDB</jndi-name>
<!-- Sybase jConnect URL for the database.
NOTE: The hostname and port are made up values. The optional
database name is provided, as well as some additinal Driver
parameters.
-->
<connection-url>jdbc:sybase:Tds:localhost:2638/DB_numberOne_db?JCONNECT_VERSION=6</connection-url>
<driver-class>com.sybase.jdbc2.jdbc.SybDataSource</driver-class>
<user-name>olivier_DBA</user-name>
<password>olivier</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter</exception-sorter-class-name>
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>Sybase</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
Eclipse allows me to create the tables from the entities, but when I do so I've got these errors near the annotation @table (of each entity) :
Quote: |
Schema "dbo" cannot be resolved for table "t_address"
|
I really don't know how to find the answer.
can you help me?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25110 seconds