API changes in recent Dali 2.1 builds [message #435044] |
Fri, 05 December 2008 10:12  |
Eclipse User |
|
|
|
Reposting from the dali-dev mailing list:
Hi all, I looked on http://wiki.eclipse.org/Dali_Provisional_API_Changes
but couldn't find any info on the recent API changes so posting here.
Looking for replacement APIs for the following that seemed to have been
removed in the 20081119 2.1 build I tried:
1) org.eclipse.jpt.core.ResourceModel
2) org.eclipse.jpt.core.resource.persistence.PersistenceResourc eModel
3) JpaFile.getResourceModel()
4) JpaProject.jpaFiles(String)
- i.e. to get all orm xml files I was using something like:
Iterator<JpaFile> persistenceXmlFiles =
jpaProject.jpaFiles(ResourceModel.ORM_RESOURCE_TYPE);
And should we be using the newsgroup for these sort of questions or is
dali-dev still the recommended venue?
Thanks,
Leonard Theivendra
|
|
|
Re: API changes in recent Dali 2.1 builds [message #435113 is a reply to message #435044] |
Mon, 08 December 2008 13:36  |
Eclipse User |
|
|
|
See comments in-line:
Leonard Theivendra wrote:
> Hi all, I looked on http://wiki.eclipse.org/Dali_Provisional_API_Changes
> but couldn't find any info on the recent API changes so posting here.
> Looking for replacement APIs for the following that seemed to have been
> removed in the 20081119 2.1 build I tried:
>
> 1) org.eclipse.jpt.core.ResourceModel
>
> 2) org.eclipse.jpt.core.resource.persistence.PersistenceResourc eModel
The behavior in ResourceModel and its implementations was rolled into the
surrounding objects:
the implementations of JpaFile and CompilationUnit and subclasses of
JpaXmlResource.
> 3) JpaFile.getResourceModel()
We have removed this method as a result of the above.
> 4) JpaProject.jpaFiles(String)
> - i.e. to get all orm xml files I was using something like:
> Iterator<JpaFile> persistenceXmlFiles =
> jpaProject.jpaFiles(ResourceModel.ORM_RESOURCE_TYPE);
This method is no longer needed by Dali.
This whole area is under *lots* of rework as we try to allow references
to Entities etc. that are in jars or other Eclipse projects. What are
you trying to do with what is returned by these methods?
> And should we be using the newsgroup for these sort of questions or is
> dali-dev still the recommended venue?
As described[1], dali-dev is for the discussion of Dali development issues
(i.e. the development *of* Dali, not development *with* Dali).
The newsgroup is the more appropriate forum for questions about the use of Dali.
[1] https://dev.eclipse.org/mailman/listinfo/dali-dev
|
|
|
Re: API changes in recent Dali 2.1 builds [message #613666 is a reply to message #435044] |
Mon, 08 December 2008 13:36  |
Eclipse User |
|
|
|
See comments in-line:
Leonard Theivendra wrote:
> Hi all, I looked on http://wiki.eclipse.org/Dali_Provisional_API_Changes
> but couldn't find any info on the recent API changes so posting here.
> Looking for replacement APIs for the following that seemed to have been
> removed in the 20081119 2.1 build I tried:
>
> 1) org.eclipse.jpt.core.ResourceModel
>
> 2) org.eclipse.jpt.core.resource.persistence.PersistenceResourc eModel
The behavior in ResourceModel and its implementations was rolled into the
surrounding objects:
the implementations of JpaFile and CompilationUnit and subclasses of
JpaXmlResource.
> 3) JpaFile.getResourceModel()
We have removed this method as a result of the above.
> 4) JpaProject.jpaFiles(String)
> - i.e. to get all orm xml files I was using something like:
> Iterator<JpaFile> persistenceXmlFiles =
> jpaProject.jpaFiles(ResourceModel.ORM_RESOURCE_TYPE);
This method is no longer needed by Dali.
This whole area is under *lots* of rework as we try to allow references
to Entities etc. that are in jars or other Eclipse projects. What are
you trying to do with what is returned by these methods?
> And should we be using the newsgroup for these sort of questions or is
> dali-dev still the recommended venue?
As described[1], dali-dev is for the discussion of Dali development issues
(i.e. the development *of* Dali, not development *with* Dali).
The newsgroup is the more appropriate forum for questions about the use of Dali.
[1] https://dev.eclipse.org/mailman/listinfo/dali-dev
|
|
|
Powered by
FUDForum. Page generated in 0.04708 seconds