Today's Messages (on)
| Unanswered Messages (on)
| Forum: EclipseLink |
|---|
| Topic: Slow Query Extraction |
|---|
| Slow Query Extraction [message #1060194] |
Thu, 23 May 2013 09:05 |
pdvmipv Mising name Messages: 9 Registered: October 2010 |
Junior Member |
|
|
I have an Oracle database and i use EclipseLink, this is an extract of my persistence classes:
@Entity
@Table(name = "TACOS")
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_TACOS")
@SequenceGenerator(name = "SEQ_TACOS", sequenceName = "SEQ_TACOS", allocationSize = 1, initialValue = 1)
@Basic(optional = false)
@Column(name = "ID_TACOS")
private Long idTacos;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "tacos")
private List<PstdCommon> pstdCommonList;
[b]public List<PstdCommon> getPstdCommonList() {
return pstdCommonList;
}[/b]
@Entity
@Table(name = "PSTD_COMMON")
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PSTD_TACOS")
@SequenceGenerator(name = "SEQ_PSTD_TACOS", sequenceName = "SEQ_PSTD_TACOS", allocationSize = 1, initialValue = 1)
@Basic(optional = false)
@Column(name = "ID_PSTD_TACOS")
@JoinColumn(name = "ID_TACOS", referencedColumnName = "ID_TACOS")
@ManyToOne(optional = false)
private Tacos tacos;
@OneToOne(cascade = CascadeType.ALL, mappedBy = "pstdCommon")
private PstdPcmAnalog pstdPcmAnalog;
@Entity
@Table(name = "PSTD_PCM_ANALOG")
@JoinColumn(name = "ID_PSTD_TACOS", referencedColumnName = "ID_PSTD_TACOS", insertable = false, updatable = false)
@OneToOne(optional = false)
private PstdCommon pstdCommon;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "pstdPcmAnalog")
private List<PstdPcmGrid> pstdPcmGridList;
@Entity
@Table(name = "PSTD_PCM_GRID")
@EmbeddedId
protected PstdPcmGridPK pstdPcmGridPK;
@JoinColumn(name = "ID_PSTD_TACOS", referencedColumnName = "ID_PSTD_TACOS", insertable = false, updatable = false)
@ManyToOne(optional = false)
private PstdPcmAnalog pstdPcmAnalog;
@JoinColumn(name = "ID_GRID_TACOS", referencedColumnName = "ID_GRID_TACOS", insertable = false, updatable = false)
@ManyToOne(optional = false)
private GridTacosPcm gridTacosPcm;
NAMED QUERY
-----------
@NamedQuery(name = "Tacos.findTacosByName", query = "SELECT t FROM Tacos t WHERE t.idHeli = :idHeli AND t.idCodHeli = :idCodHeli AND "
+ "t.tacosName = :tacosName")
As a first step i run the '@NamedQuery Tacos.findTacosByName' to get the main object of db (Tacos), from this object i take the list parameters associated with the main object with the function 'getpstdcommonlist()' inside the class main class.
When i do the first access of the data of the list returned by the function 'getpstdcommonlist()'automatically eclipselink performs 30000 query for "fill" all the objects. The execution time on a list of 10000 records is about 48 seconds.
This a part of quey executed:
T-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CONNECTION_NAME, FIELD_LENGHT, HERTZ_REPETITION, MSB, PARAMTER_NAME, PHSYCAL_TYPE, POSITION, PROV_CONV_TYPE FROM PSTD_FULL_FIELD WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.088--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CAL_IMPULSE, CAL_SHORT, CAL_TYPE, CAL_ZERO, DATA_FORMAT, DEPURATION, ENDURANCE, EXTRA_BITS, PRE_F_IMPULSE, PRE_F_SHORT, PRE_F_ZERO FROM PSTD_PCM_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.089--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CHANNEL_FM, COD_FREQ_ACQ, NUM_CYCLE FROM PSTD_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.09--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, LINE_NAME, PROC_CONV, RATE, SIGN, START_BIT, STOP_BIT FROM PSTD_PCM_BUS WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.095--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CONNECTION_NAME, FIELD_LENGHT, HERTZ_REPETITION, MSB, PARAMTER_NAME, PHSYCAL_TYPE, POSITION, PROV_CONV_TYPE FROM PSTD_FULL_FIELD WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.098--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CAL_IMPULSE, CAL_SHORT, CAL_TYPE, CAL_ZERO, DATA_FORMAT, DEPURATION, ENDURANCE, EXTRA_BITS, PRE_F_IMPULSE, PRE_F_SHORT, PRE_F_ZERO FROM PSTD_PCM_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.099--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CHANNEL_FM, COD_FREQ_ACQ, NUM_CYCLE FROM PSTD_ANALOG WHERE (ID_PSTD_TACOS = ?)
....
[EL Finest]: 2013-05-23 11:07:32.266--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[EL Fine]: 2013-05-23 11:07:32.267--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)
[EL Finest]: 2013-05-23 11:07:32.271--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[EL Fine]: 2013-05-23 11:07:32.273--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)
[EL Finest]: 2013-05-23 11:07:32.28--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[
....
On the other hand, if I create a query with INNER JOIN, between the three tables, which I will return the same number of data, the execution time is a little more than 1 second.
The query is:
"SELECT PSTD_COMMON.*, PSTD_PCM_ANALOG.*, PSTD_PCM_GRID.* FROM PSTD_COMMON INNER JOIN PSTD_PCM_ANALOG ON (PSTD_COMMON.ID_PSTD_TACOS = PSTD_PCM_ANALOG.ID_PSTD_TACOS) INNER JOIN PSTD_PCM_GRID ON (PSTD_COMMON.ID_PSTD_TACOS = PSTD_PCM_GRID.ID_PSTD_TACOS) WHERE PSTD_COMMON.ID_TACOS = ? AND PSTD_PCM_GRID.ID_GRID_TACOS = ?"
There is a way to work with eclispelink without executed multipe query, and use a simple inner join like the native query and fill the persistence classes?
It's normal that eclipselink use so many query to extract the data?
|
|
| | Topic: Call Oracle Function |
|---|
| Call Oracle Function [message #1060101] |
Thu, 23 May 2013 02:54 |
Oliver Baum Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi,
I want to call the ORACLE database FUNCTION "TO_DATE" with a NamedQuery.
In the documentation I found, that I have to use FUNCTION to call specific database functions.
My NamedQuery:
@NamedQuery(name="useFunction",query="select a from TDatum a where a.datum = FUNCTION('TO_DATE','2013/12/11','yyyy-mm-dd')")
But I always get an "Syntax error parsing" error.
Can somebody help me?
Thanks
Oliver
|
|
| | Forum: Newcomers |
|---|
| Topic: Hudson 3.0.1 : I cannot delete a Job |
|---|
| | Forum: BIRT |
|---|
| Topic: Designer plugin classloader exception |
|---|
| Designer plugin classloader exception [message #1060165] |
Thu, 23 May 2013 07:39 |
Mark Mescher Messages: 17 Registered: July 2009 |
Junior Member |
|
|
Hi,
I have developed a scripted data set using JAVA. This dataset is using jax-ws to receive it's data. The dataset is working fine for me and can be used in our own server solution and also in Designer's preview.
Now in additon I have implemented a native RCP Eclipse plugin for uploading the design file to our server. The final jar is just copied to the Designer's plugin directory. This plugin is also using jax-ws and is also running fine.
But now I am running into a problem. When using preview and plugin at the same time without restarting Designer (e.g. running a preview and after that upload design file or the other way round), I'm running into an exception:
java.lang.IllegalArgumentException: interface com.sun.xml.ws.developer.WSBindingProvider is not visible from class loader
The problem seems to be that both implementations are using the same jar-dependencies (which are delivered twice, with dataset and plugin). But as far as I understood every Eclipse plugin should use its own classloader, so where is the problem? Does anyone has an idea whats to do?
Thank you a lot!
Note: I'm using Birt 4.2.2.
Best regards
Mark
|
|
| | Forum: scout |
|---|
| Topic: [META] Searching the forum for my own posts |
|---|
| | Forum: EMF |
|---|
| Topic: Model Evolution: Mixing of generated and dynamic models |
|---|
| Model Evolution: Mixing of generated and dynamic models [message #1060145] |
Thu, 23 May 2013 06:20 |
Sebastian Fuchs Messages: 92 Registered: July 2009 |
Member |
|
|
Hello,
I am the developer of a civil engineering platform, consisting of some
common ecore base models and a lot of independent ecore application
models depending on the base models.
I fail to create incremental updates to handle some specific model
evolutions. Model evolutions may consist of any change like adding,
removing, renaming attributes, references or classes. Details below.
For every ecore model (base or application) I have generated code only
for the latest version. The version is reflected by a prefix of the
certain model's nsURI. Older versions of ecore models are provided only
dynamically via their *.ecore files.
So I am able to load any serialized application instance file of every
version, even older ones by emf onboard mechanism. The content and
version are identified via content type indentifiers.
To provide usage of an older version application instance, I must update
that instnace to the latest version. To avoid rewriting of every updater
each time a model evolves, I decided to make incremental updates, e.g.:
Latest version is 3.0, loaded instance has 1.0 - I update the instance
from 1.0 to 2.0 and from 2.0 to 3.0.
As there is (and will be) only generated code for the latest version,
every statement in the updater is generic to be future safe.
As stated in
http://wiki.eclipse.org/EMF/Recipes#Recipe:_Copying_models_from_an_EPackage_implementation_to_another_one
I use a modified Copier for updating. In principle, it provides a map
from source package nsURI to target package nsURI from where target
EClassifiers and EStructuralFeatures are determined.
So long everything works fine.
My problem is that in some cases - namely the updating to NOT the latest
version - I have a mixture of generated and dynamic instances. This is
due to the independent evolution of the application models and their
depending base models, mainly when the application instance can only be
loaded dynamically - as there is no generated code which then
(correctly) refers to the ecore-package of the base model instead of the
registered generated-package of the base model.
E.g. there could be
(Legacy) BaseV1.ecore, (Latest) BaseV2.ecore + *.java (where the
generated package is registered)
and
(Legacy) AppV1.ecore, (Legacy) AppV2.ecore, (Latest) AppV3.ecore +
*.java (where the generated package is registered)
where AppV1 depends on Basev1 and AppV2 + Appv3 depends on Basev2.
In such a case standard factories seem to create some generated
instances of the base model's classes.
Though I already worked around the resolution of the correct EStructural
Features as well as different generic access of EEnums in such a case, I
sometimes end in an ArrayStoreException:
java.lang.ArrayStoreException: org.eclipse.emf.ecore.impl.DynamicEObjectImpl
at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.java:124)
at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:424)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:331)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:315)
at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:307)
at
de.tragwerk.solution.statics.combination.model.update.Copier200To210.copyContainment(Copier200To210.java:112)
I think my problem is related to the following post:
http://www.eclipse.org/forums/index.php/mv/msg/173614/552576/
Though I am still not sure whether this is a bug.
If not, how can I force emf to only work with dynamic instances only for
the update scenario, which meens to maintain the original package
registries for all other standard use cases ?
Ore is there any other way to go ?
Thanks in advance
Sebastian
--
Dipl.-Ing. Sebastian Fuchs
TragWerk Software
Döking + Purtak GbR
Prellerstraße 9
01309 Dresden
Tel. +49 (0)351-433 08 50
Fax +49 (0)351-433 08 55
Email: sf@xxxxxxxx
http://www.tragwerk-software.de
http://www.twsolution.de
|
|
| | Forum: Jubula |
|---|
| Topic: How to handle popup in jubula? |
|---|
| How to handle popup in jubula? [message #1060174] |
Thu, 23 May 2013 08:03 |
jayaprakasam raju Messages: 2 Registered: February 2013 |
Junior Member |
|
|
Hi,
I want to click Yes button in the popup that is opening when we click another button in my application.
Now i am able to click the button from application but unable to identify the popup and click Yes button in it.
I am new to jubula.
Can anyone please help me to resolve this issue?
Attached popup screenshot.
Thanks,
Jayaprakasam.R
[Updated on: Thu, 23 May 2013 08:06] Report message to a moderator
|
|
| | Topic: Problem by using Jubula via update site mechanism |
|---|
| Problem by using Jubula via update site mechanism [message #1060167] |
Thu, 23 May 2013 07:40 |
Doreen Engling Messages: 2 Registered: July 2009 |
Junior Member |
|
|
So to get more knowledge with ubula
1.I have installed at first the stand alone Jubula version 2.0 and used the embedded database. Went through the SimpleMailTest RCP-sample and all was fine.
2.I have installed an eclipse 3.8.0 and added all the jubula 1.2.2 features via the update site mechanism, used the embedded database too / open the above created project SimpleMailTest and let run the "AUT Mail" so it is to see within the running AUT window ...testrun failed and it seems the AUT is not on focus, cant find by the test although I have set it on the properties/expert settings to Activation mode "Click on titlebar"
There is a screenshot (Image view) created, which shows me the whole desktop. And by selecting the Properties of the failed TC (Click on Toolbar Item)it is written: "Configuration Error" at Type.
I can't use the standalone version of Jubula in the future because the goal is to install GUI tests of our products after the build run on the bamboo server (ANT script is using there.
Any idea?
|
|
| | Topic: Could testexec Command offer an error message of screen shot besides .htm & .xml file? |
|---|
| | Forum: TMF (Xtext) |
|---|
| Topic: EMF changes do not reflect Xtext Document |
|---|
| EMF changes do not reflect Xtext Document [message #1060170] |
Thu, 23 May 2013 07:45 |
junior developer Messages: 140 Registered: January 2013 |
Senior Member |
|
|
Hi all ,
I changed EMF ,I write code in the public abstract class ContentUnitImpl extends MinimalEObjectImpl.Container implements ContentUnit.
I did debug ,entered in the debug but changes not reflect in the Xtext Editor.Why this changes reflected in the Xtext Document(Editor) ?
My code is below :
public void setName(String newName)
{
String oldName = name;
name = newName;
//Display name bos ise doldur.
if(this.getDisplayName() == null || this.getDisplayName().equals("")){
this.setDisplayName(name);
}
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ContentPackage.CONTENT_UNIT__NAME, oldName, name));
}
Best Regards,
[Updated on: Thu, 23 May 2013 08:02] Report message to a moderator
|
|
| | Topic: Xtext 2.4 referencing UML |
|---|
| Xtext 2.4 referencing UML [message #1060115] |
Thu, 23 May 2013 03:44 |
Marc Z Messages: 4 Registered: July 2012 |
Junior Member |
|
|
Hi,
I'm trying the reference UML elements in my DSL usign the following workflow:
Workflow {
bean = StandaloneSetup {
scanClassPath = true
platformUri = "${runtimeProject}/.."
// The following two lines can be removed, if Xbase is not used.
registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage"
registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
registerGeneratedEPackage = "org.eclipse.emf.ecore.EcorePackage"
registerGenModelFile = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel"
registerGeneratedEPackage = "org.eclipse.uml2.uml.UMLPackage"
registerGenModelFile = "platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel"
registerGeneratedEPackage = "org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage"
registerGenModelFile = "platform:/resource/org.eclipse.emf.codegen.ecore/model/GenModel.genmodel"
registerGeneratedEPackage = "org.eclipse.uml2.codegen.ecore.genmodel.GenModelPackage"
registerGenModelFile = "platform:/resource/org.eclipse.uml2.codegen.ecore/model/GenModel.genmodel"
}
component = DirectoryCleaner {
directory = "${runtimeProject}/src-gen"
}
component = DirectoryCleaner {
directory = "${runtimeProject}.ui/src-gen"
}
component = Generator {
pathRtProject = runtimeProject
pathUiProject = "${runtimeProject}.ui"
pathTestProject = "${runtimeProject}.tests"
projectNameRt = projectName
projectNameUi = "${projectName}.ui"
language = auto-inject {
uri = grammarURI
// Java API to access grammar elements (required by several other fragments)
fragment = grammarAccess.GrammarAccessFragment auto-inject {}
// generates Java API for the generated EPackages
fragment = ecore.EcoreGeneratorFragment auto-inject {
// referencedGenModels = "
// platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel,
// platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel
// "
}
// the old serialization component
// fragment = parseTreeConstructor.ParseTreeConstructorFragment auto-inject {}
// serializer 2.0
fragment = serializer.SerializerFragment auto-inject {
generateStub = false
}
// a custom ResourceFactory for use with EMF
fragment = resourceFactory.ResourceFactoryFragment auto-inject {}
// The antlr parser generator fragment.
fragment = parser.antlr.XtextAntlrGeneratorFragment auto-inject {
// options = {
// backtrack = true
// }
}
// Xtend-based API for validation
fragment = validation.ValidatorFragment auto-inject {
// composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
// old scoping and exporting API
// fragment = scoping.ImportURIScopingFragment auto-inject {}
// fragment = exporting.SimpleNamesFragment auto-inject {}
// scoping and exporting API
fragment = scoping.ImportNamespacesScopingFragment auto-inject {}
fragment = exporting.QualifiedNamesFragment auto-inject {}
fragment = builder.BuilderIntegrationFragment auto-inject {}
// generator API
fragment = generator.GeneratorFragment auto-inject {}
// formatter API
fragment = formatting.FormatterFragment auto-inject {}
// labeling API
fragment = labeling.LabelProviderFragment auto-inject {}
// outline API
fragment = outline.OutlineTreeProviderFragment auto-inject {}
fragment = outline.QuickOutlineFragment auto-inject {}
// quickfix API
fragment = quickfix.QuickfixProviderFragment auto-inject {}
// content assist API
fragment = contentAssist.ContentAssistFragment auto-inject {}
// generates a more lightweight Antlr parser and lexer tailored for content assist
fragment = parser.antlr.XtextAntlrUiGeneratorFragment auto-inject {}
// generates junit test support classes into Generator#pathTestProject
fragment = junit.Junit4Fragment auto-inject {}
// project wizard (optional)
// fragment = projectWizard.SimpleProjectWizardFragment auto-inject {
// generatorProjectName = "${projectName}"
// }
// rename refactoring
fragment = refactoring.RefactorElementNameFragment auto-inject {}
// provides the necessary bindings for java types integration
fragment = types.TypesGeneratorFragment auto-inject {}
// generates the required bindings only if the grammar inherits from Xbase
fragment = xbase.XbaseGeneratorFragment auto-inject {}
// provides a preference page for template proposals
fragment = templates.CodetemplatesGeneratorFragment auto-inject {}
// provides a compare view
fragment = compare.CompareFragment auto-inject {}
}
}
}
But running the workflow always results in the following error:
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri '.../uml2/2.2.0/GenModel' not found. (platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel, 13, 32)
Dows anyone know how to fix this error?
Thx Marc
|
|
| | Forum: Eclipse Platform |
|---|
| Topic: p2 repository produces outdated jar/plugin |
|---|
| p2 repository produces outdated jar/plugin [message #1060151] |
Thu, 23 May 2013 06:44 |
Erik Vande Velde Messages: 61 Registered: September 2012 |
Member |
|
|
Our project consists of a common, server and client module.
Common contains classes that are shared between the server and client.
The client module (RCP4) should always use the most recent version of common.
Therefore we build a common-1.0.0-SNAPSHOT jar, and put it in nexus.
We also have a p2repository module that creates a p2 update site containing the latest common code, let's call it p2repository.zip.
THE PROBLEM: when we use p2repository.zip as 'software site' in the target platform of our client module it somehow downloads the common-1.0.0-SNAPSHOT.jar of one day ago, and the code doesn't compile. Still that same zip contains the correct version of common-1.0.0-SNAPSHOT.jar in its plugin sub-directory, so I wonder where eclipse finds the outdated jar.
THE QUESTION: why doesn't eclipse use the jars in the p2 repository zip, and where does it find the outdated jars it does use?
Sadly I cannot attach the p2repository.zip here, as it's 4 MB in size ...
|
|
| | Forum: M2T (model-to-text transformation) |
|---|
| Topic: [Acceleo] Problem when generating methods with the same name |
|---|
| [Acceleo] Problem when generating methods with the same name [message #1060130] |
Thu, 23 May 2013 05:06 |
Javier García Messages: 70 Registered: April 2013 |
Member |
|
|
Hi guys,
I recently run into some problems with my Acceleo transformation. It works mostly perfect, I transform an UML model into Java code and now I have in several classes two methods that have the same name, but different parameters (method overloading I believe it's called) and when Acceleo generates it, the weirdest thing happens, I get three methods generated. Now when I create the method I also copy any comments it has attached, so I can clearly see that one of the methods gets generated once, and the other method gets generated twice.
So why does this happen? does it get confused somehow due to both methods sharing the same name? is this a known bug?(I couldn't find any info). It's really the only case in which I get this error, every other method gets created just once.
I will just post here the code I use in case it's useful:
[template private operations(aClass : Class)]
[for (anOperation : Operation | aClass.getOperations()->union(aClass.getImplementedInterfaces().ownedOperation))]
/**
* The documentation of the method [anOperation.name.toLowerFirst()/].
*
[for (aParameter : Parameter | anOperation.ownedParameter) ? (aParameter.direction <> ParameterDirectionKind::return)]
* @param [aParameter.name/]
[/for]
[if (not anOperation.type.oclIsUndefined())]
* @return
[/if]
*
* @generated
*/
[anOperation.visibility/] [if (anOperation.type.oclIsUndefined())]void[else][anOperation.type.name/][/if] [anOperation.name.toLowerFirst()/]([anOperation.parameters()/]) {
//
/*
* This is the code from the former method:
* [for (aComment : Comment | anOperation.ownedComment)] [aComment._body/][/for]
*/
// TODO should be implemented
[if (anOperation.type.oclIsUndefined())]//return null;[else][/if] [comment it should be not anOperation... but for some reason it doesn't work properly if we do it that way. /]
//
}
[/for]
[/template]
Thanks in advance,
regards,
Javier
|
|
| | Forum: Sapphire |
|---|
| Topic: Advise for the use of Sapphire with present schema file |
|---|
| Advise for the use of Sapphire with present schema file [message #1060124] |
Thu, 23 May 2013 04:05 |
kon f Messages: 29 Registered: March 2012 |
Junior Member |
|
|
Hey,
I'm suppose to build an editor for some a xml file that also has a corresponding schema file. I started with some multi page editor and was looking for some problem on StackOverflow, as I found Sapphire. I had a look on the examples, that basically consist of some Java interfaces (responsible for the model that implies the mapping to the xml files) and some xml files that do the arrangement of the UI elements (I hope, I got this right). I'm impressed and it really seams to speed up UI development!
As the creation of my visual editor would take at least two/three weeks, I would like to try Sapphire on this task. How should I start? I already have a schema file for the xml content. The schema is complicated and consists of a long hierarchy. An example for the xml hierarchy would be A -> B -> C. To make this process more convenient, I would like to hide some of the xml hierarchy, e.g. skip B and let the user provide directly A -> C. Is this possible?
I have read the introduction and also tried the examples. Is there a way I could automate the creation of the interfaces/annotations from my schema files? Or do I have to start from scratch?
Thank you!
Kon
|
|
| | Forum: CDT |
|---|
| Topic: How to change project settings by script/tool |
|---|
| How to change project settings by script/tool [message #1060169] |
Thu, 23 May 2013 07:43 |
kalin dimitrovv Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I use eclipse CDT with scons and sconsolidator.
I can build my project and all is ok, but if i don't set include directories and symbols in eclipse project, eclipse intelisense will show me errors of type unresolved symbols.
Is there way to run script which set this variable for my project ?
|
|
| | Topic: Disabling file overview on click in "C/C++ Projects" tree view? |
|---|
| | Topic: Content assist - Proposal types |
|---|
| Content assist - Proposal types [message #1060106] |
Thu, 23 May 2013 03:03 |
Patrick Soboljew Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Hello CDT community,
can someone explain to me the difference between the different proposal types:
- Help Proposals
- Parsing-based Proposals
- Template Proposals?
When I installed CDT, "Parsing-based Proposals" was deactivated. Therefore autocompletion did not work. After turning this one on autocompletion works as expected. What are the other options doing?
|
|
|
Current Time: Thu May 23 09:31:58 EDT 2013
Powered by FUDForum. Page generated in 0.08538 seconds
|