Questions tagged [codegen]

Use codegen for questions related to language features or tools which facilitate translating code between languages or creating code from metadata

References

242 questions
1
vote
1 answer

How to use jooq codegen to automatically add custom fields to build pojos?

I use jooq codegen to generate entity classes like this : public class TCoactivitiesPinan extends BaseEntity implements Serializable { private static final long serialVersionUID = 2007524284; private Integer id; private String openid; private…
hjk9317
  • 11
  • 1
1
vote
0 answers

Matlab Codgen error when generating MEX file

I'm having some problems in generating a MEX file using Matlab Codgen. I'm not able to identify the reason of this error, I get an error message that doesn't reflect a real situation, in my understanding. The function that I want to convert is the…
Emanuele
  • 147
  • 1
  • 2
  • 13
1
vote
1 answer

swift codegen file error

Working with coredate I used the option codegen: category/extension to be able to create a file where I can put in the re-usable code for finding, updating or deleting database entries. I started the coredata entity first with the codegen option…
Marcel
  • 29
  • 3
1
vote
1 answer

Cloudera - Sqoop codegen custom ORM class on import

I am new to Cloudera environment, I am trying to import data from RDBMS using Sqoop and I need to apply some transformations to data during the import. Specifically I need to encrypt some fields before storing them on the Hadoop DFS. To accomplish…
revy
  • 3,945
  • 7
  • 40
  • 85
1
vote
1 answer

How does Spark convert RDD's transformation / action to a Logical Plan ?

I'm learning Spark's CodeGen mechanism, but got confused by the way Spark convert RDD's transformation / action to Logical Plan. The Spark Application as follow: def sparkTest(): Any = { val spark = SparkInit.spark import…
lulijun
  • 415
  • 3
  • 22
1
vote
2 answers

Oracle program too large (codegen operands) error

I'd like to build shapes in Oracle from several thousand points, but upon running the created code, I get the error: ORA-06550: program too large (codegen operands) What limit am I hitting? How can I overcome on it? A similar code to reproduce…
lmocsi
  • 550
  • 2
  • 17
1
vote
1 answer

Swagger api client methods return void

Swagger api client, generated by codegen tool, only creates tests methods with return type void. How can I test my rest api ? This is my service code specification: @Api(value = "Authentication Recovery") @Path("/authenticationRecovery") public…
Manuel
  • 205
  • 1
  • 4
  • 17
1
vote
1 answer

How to suppress default constructor on a generated dynamic type

When creating a dynamic type in .NET, a default constructor is generated. How do I suppress that? var typeBuilder = moduleBuilder.DefineType( type.FullName, TypeAttributes.NotPublic | TypeAttributes.BeforeFieldInit);
Andrew Arnott
  • 80,040
  • 26
  • 132
  • 171
1
vote
1 answer

Are MachineBasicBlocks supposed to implicitly fall through to their successors?

I'm debugging an LLVM target backend, and I am chasing a problem where a certain basic block ends up jumping to "nothing", i.e. just after the end of the function, when compiled with optimizations turned on. One thing I noticed is that after…
Cactus
  • 27,075
  • 9
  • 69
  • 149
1
vote
1 answer

codegen error: Conversion to struct from double is not possible

I am trying to convert Matlab legacy code into a C program. I went though the usual flows, but am having a build error that I do not understand: Nfft = 8; [~,coh] = size(h); // h = array of 168 elements; display(coh); // displays 168 if…
noobuntu
  • 903
  • 1
  • 18
  • 42
1
vote
0 answers

Slick codegen NoSuchMethodError

I have been trying to get slick's schema code generation to work. This is the method I'm using to run slicks code generator and the result that I'm…
B Roy Dawson
  • 611
  • 1
  • 6
  • 18
1
vote
1 answer

Swagger - customising a single class generated by codegen

I need to customise a single class that is generated by swagger codegen, I have been reading about the mustache templates and that seems like the right way to go but I only want to change a single generated class. The examples I looked at seemed to…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
1
vote
1 answer

Generate request-example in Swagger codegen

I'm attempting to write a new language module for swagger codegen. In my generated client, I would like to include an example request. An instance of this can be seen in swagger UI under "Example Value" The text itself doesn't seem to be contained…
RaGe
  • 22,696
  • 11
  • 72
  • 104
1
vote
1 answer

Swagger-codegen c#: Missing client member of type byte[]

I'm using the java Swagger-Codegen class to generate the c# client for a Swagger Web Api exposing a firmware publishing service. The public Byte[] LelFile property of the PackagePublishRequestInfoAndLel dto class required as parameter of the public…
Bug Raptor
  • 261
  • 6
  • 15
1
vote
1 answer

Get the data out of the emxArray_real_T

I have converted a simple code to C++ using Matlab coder. However, my main problem is that I cannot get its output! How can I convert the output which is an emxArray_real_T type to a C++ array and print it?
Sam
  • 939
  • 5
  • 14
  • 41