Questions tagged [generated-code]
231 questions
1
vote
2 answers
MinuteProject adding unwanted package hierachy when creating Entities
I'm using Minuteproject to generate my JPA2 entities.
I use the GUI by running .start-console.sh. and enter all my db connection and package details.
It generates all my classes but with each class package as follows.
package…

Thomas Buckley
- 5,836
- 19
- 62
- 110
1
vote
0 answers
JAXB generated classes for fixed attribute in subtype
My java classes are being generated from xsd file.
The goal I want to accomplish is to have some "known" properties based on the type of elements. For instance, I have a list of animals. After the xml is being parsed, I want to know in the code how…

Cipi
- 160
- 1
- 2
- 8
1
vote
0 answers
Working on old Windows Forms project using newer Visual Studio version causes changes to ResX and generated code files. Why?
I have been working on a .NET 2.0 Windows Forms project. I am not sure when it was last maintained, and what Development Environment was being used. I think Visual Studio 2005 is likely; the project has probably since been upgraded to Visual Studio…

Holf
- 5,605
- 3
- 42
- 63
1
vote
0 answers
How can I get SourceMonitor to skip equals() and hashcode() methods generated by eclipse?
These automatically generated methods adds complexity which I would like to exclude from the analysis.

Roger C S Wernersson
- 6,362
- 6
- 34
- 45
1
vote
1 answer
How can I get Eclipse to mark generated code like equals to prevent code quality tooling issues?
Generated code tends to flag up in our SONAR code quality tooling for things like cyclomatic complexity. It seems that it is a recognised problem and there is support for annotation-based suppression.
I don't want to have to manually edit or…

brabster
- 42,504
- 27
- 146
- 186
1
vote
1 answer
Xtext - Generating object - generate more data
I have xtext file similar to the xtext describe in here:
(www.ebpml.org/blog2/index.php/2010/11/05/mde-xtext-and-json)
JSONDataSource: root = Object ;
Object: '{' firstObject=TerminalObject (',' objects+=TerminalObject)* '}';
Array:…

Dana Klein
- 159
- 1
- 12
1
vote
1 answer
Where are delegate instances added to events when generating automatic event handlers?
When I double click on a button (myButton) in Design view of a .aspx web form, an event handler is automatically generated in the code behind: protected void myButton_Click(object sender, EventArgs e)
Now if I understand correctly, in order to…

CptSupermrkt
- 6,844
- 12
- 56
- 87
1
vote
3 answers
unknown number of built sources with automake
I have a script that generates c++ source files of previousy unknown number and name which then need to be compiled into one library. So far, I do this with a simple (shell) for loop in my Makefile:
compile:
for f in `ls -1 *.cpp` ; do g++…

Martin Wiebusch
- 1,681
- 2
- 11
- 15
0
votes
2 answers
How do I generate code under Eclipse+PyDev?
I'm developing a system, and I have build a code generator that emits a bunch of classes based on a configuration file.
I would like to configure PyDev to invoke the generator for me whenever the configuration file (or the generator source)…

Austin Hastings
- 617
- 4
- 13
0
votes
2 answers
JPA - How to get any produced sql code programmatically?
JPA gurus, let say I have the following entity :
@Entity
class MyEntity {
@Id
private Long id;
// setters and getters here
}
through JPA on an Oracle database something similar would be generated :
CREATE TABLE MyEntity {
-- table…

Stephan
- 41,764
- 65
- 238
- 329
0
votes
0 answers
Get CustomerAccountCod from account parent
I have an account table that contains a parent field that I want when adding a client in the client table, an account number is generated for it in the account table and the same time appears in the account tree
I want to help debug the following…
0
votes
0 answers
Generate pdf with pdfKit packingList
I need to generate a pdf of the packing list with the data of the notes and the volume of the box, and I want it to be added to a new page when it exceeds 40 pages, I'm using pdfKit
I'm using this link https://pdfkit.org/demo/browser.html
I need to…

Wilton Santos
- 1
- 1
0
votes
0 answers
What is the best way for this type of authentication in Spring Boot?
I am making a Java Spring Boot application where the users are authenticated with JWT. I want to have a user role that can
authenticate by only a generated code sent by the admin (so the user neither has to register because it is added to the…

helloworld
- 21
- 3
0
votes
1 answer
How it's better to add generatable sources files to qmake project?
There is somefile.h.in and script somefile.h.pl which generates number of files like "somefile.h.gen" or "somefile_other.cpp.gen2".
How to add source generation phase in qmake? In plain Makefile I'd just put things like
somefile.o: somefile.cpp…

Vi.
- 37,014
- 18
- 93
- 148
0
votes
0 answers
Have gradle task depend on compileDebugKotlin in android project
I have some code generating task that needs to be performed before compilation. I thought I could achieve this by adding compileDebugKotlin.dependsOn myGenerateTask in my build.gradle but I am getting this error:
Caused by:…

bill
- 167
- 1
- 2
- 7