[ 
https://issues.apache.org/jira/browse/OLINGO-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811280#comment-13811280
 ] 

Georgi edited comment on OLINGO-48 at 11/1/13 2:36 PM:
-------------------------------------------------------

Hi Chandan, I tried the changed application and it's way better now.
However, I need to reopen because of a problem with navigating to concrete 
Entries.
Trying to list EntitySets works fine - i see the list of entries. However, when 
i try to pick whichever entry and navigate to it, I get 404.

For reference:
Request: curl 
"http://localhost:8080/jpa-web/SalesOrderProcessing.svc/Stores(131L)"
Response: <?xml version='1.0' encoding='UTF-8'?><error 
xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";><code/><message
 xml:lang="en">Requested entity could not be found.</message></error>

With regards to the nwcloud-maven-plugin plugin dependency, no there's no 
technical or legal issue AFAIK. The only problem is that it doesn't get 
resolved by the dependency management in maven. Both mean that it's not needed 
and it would be best to remove it. But if you've go good reasons to keep it, 
are there any plans to publish it in some public repository manager (e.g. maven 
central) alternatively?


was (Author: shturec):
Hi Chandan, I tried the changed application and it's way better now.
However, I need to reopen because of a problem with navigating to concrete 
Entries.
Trying to list EntitySets works fine - i see the list of entries. However, when 
i try to pick whichever entry and navigate to it, I get 404.

fro reference:

> jpa reference application issues wtih sample data population
> ------------------------------------------------------------
>
>                 Key: OLINGO-48
>                 URL: https://issues.apache.org/jira/browse/OLINGO-48
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: 1.0.0, 1.1.0
>            Reporter: Georgi
>            Assignee: Chandan V.A
>             Fix For: 1.1.0
>
>
> There's multiple issues in the jpa reference application:
> 1. Sample data is never populated - could be fixed with the following change 
> in the 
> org.apache.olingo.odata2.jpa.processor.ref.web.JPAReferenceServiceFactory
> EntityManagerFactory emf = 
> JPAEntityManagerFactory.getEntityManagerFactory(PUNIT_NAME);
> DataGenerator generator = new DataGenerator(emf.createEntityManager());
> generator.generate();
> oDataJPAContext.setEntityManagerFactory(emf); 
> 2. The sample data insert scripts have data constraint issues, e.g.:
> Internal Exception: java.sql.SQLException: Violation of unique constraint 
> SYS_PK_47: duplicate value(s) for column(s) SO_ID in statement [insert into 
> T_SALESORDERHEADER (SO_ID, BUYER_ID, BUYER_NAME, CURRENCY_CODE, 
> DELIVERY_STATUS, creationDate, HOUSE_NUMBER, STREET_NAME, CITY, COUNTRY) 
> values(9, 9, 'buyerName_9', 'GBR', '02', '2013-01-01 00:00:00', 9, 
> 'Test_Street_Name_9', 'Test_City_9', 'Test_Country_9');]
>  Error Code: -104
>  Call: insert into T_SALESORDERHEADER (SO_ID, BUYER_ID, BUYER_NAME, 
> CURRENCY_CODE, DELIVERY_STATUS, creationDate, HOUSE_NUMBER, STREET_NAME, 
> CITY, COUNTRY) values(9, 9, 'buyerName_9', 'GBR', '02', '2013-01-01 
> 00:00:00', 9, 'Test_Street_Name_9', 'Test_City_9', 'Test_Country_9');
>  Query: DataModifyQuery(sql="insert into T_SALESORDERHEADER (SO_ID, BUYER_ID, 
> BUYER_NAME, CURRENCY_CODE, DELIVERY_STATUS, creationDate, HOUSE_NUMBER, 
> STREET_NAME, CITY, COUNTRY) values(9, 9, 'buyerName_9', 'GBR', '02', 
> '2013-01-01 00:00:00', 9, 'Test_Street_Name_9', 'Test_City_9', 
> 'Test_Country_9');")
> 3. (minor) In the pom file, there are leftover plugins from the initial SAP 
> contribution:
>                 <plugin>
>                     <groupId>com.sap.research</groupId>
>                     <artifactId>nwcloud-maven-plugin</artifactId>
>                     <version>1.0.0.RELEASE</version>
>                 </plugin>



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to