Questions tagged [auto-generate]

The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.

See also

654 questions
3
votes
0 answers

Bazel build - go:generate stringer "stringer: can't happen: constant is not an integer"

I am trying to create an auto-generated file "txstatus_string.go" within Bazel sandbox which relies on a go file and it is getting created with below stringer command: go:generate stringer -type TxStatus I am using a bazel genrule like…
alanmas
  • 61
  • 4
3
votes
1 answer

How to use @GeneratedValue inside @Embeddable used as composite primary key?

I have in my data base one table with primary composite key, when I model it with Hibernate I use @EmbeddedId & @Embedable. One column of this composite primary key have a generated value with @GeneratedValue(strategy =…
BOSS_ladis
  • 39
  • 6
3
votes
3 answers

Shortcut for generating json_serializable (Flutter/Dart plugin) boilerplate codes in Android Studio

json_serializable plugin of Dart, does a great job of automatically generating some error prone and cumbersome parts of code, in exchange for some boilerplate: two methods, one annotation, and one reference to the generated file. import…
Ashkan Sarlak
  • 7,124
  • 6
  • 39
  • 51
3
votes
0 answers

Good Auto-generation of POD from a Schema?

All, Does anyone know of a tool that can create vanilla POD-like C++ structures from a Schema description? Important qualities are: reasonable to use as "first class citizens" inside of the code. aggregates are packed just like native…
Charles L Wilcox
  • 1,126
  • 8
  • 18
3
votes
1 answer

How to Autogenerate the cube and dimension design from the Builder Schema file in icCube?

I want to document the model design in the Builder in icCube. Initially it will not be too much work to document it using MS Visio or something similar, but I foresee the issues when the model will get changed over time with designs not matching the…
Arthur
  • 1,692
  • 10
  • 14
3
votes
4 answers

SQL Structure to Store Surveys and Answers - Build Tables and Queries Based on User Data?

I'm a total newbie when it comes to SQL. I'm making a site in ASP.NET for doing surveys. A privileged admin user will be able to build a survey. Then lots of other people will respond to the survey. Once I have the set of questions for a new…
Mike Kantor
  • 1,400
  • 4
  • 24
  • 45
3
votes
0 answers

Dart Multiple Annotations & source_gen

I'm trying to create a package for Flutter that provides source generation using source_gen. I would like to be able to annotate a class and fields to identify what needs to be generated. (An example of this would be the libraries Dagger2 or ROOM,…
eimmer
  • 1,537
  • 1
  • 10
  • 29
3
votes
1 answer

Gnu Make auto-dependency generation

Based on this famous link and adapted from this gist, and supposing that all of your source files are .cpp, you get easily a solution like this to have auto-dependence generation: SRCS := $(wildcard *.cpp */*.cpp) DEPDIR := .d DEPS :=…
ABu
  • 10,423
  • 6
  • 52
  • 103
3
votes
2 answers

how to auto-generate a report with JasperReports

I'm working on NetBeans, and want to 'auto-generate' a report with JasperReports. Here is the deal: I want to create a form that asks for a date frame in order to do a sql query and bring that information; then format it and generate a PDF report…
gadget00
  • 301
  • 6
  • 18
3
votes
1 answer

generate automatically getter and setter in Android Studio

When I programmed with Android Studio, it seems to me that is a way to generate automatically the getter and the setter of my new java class. Can anyone tell me how to do it?
Ian Gallegos
  • 524
  • 1
  • 9
  • 18
3
votes
4 answers

Generate 3000 squares procedurally

I need to build a widget that contains 3000 squares. Doing this manually would take a very long time, maybe some of you know the easiest way to generate the class .square 3000 times? I need also be able to alter the content of each square, for…
Lukas
  • 159
  • 2
  • 4
  • 18
3
votes
2 answers

Is it possible to auto-generate object initialization code from a runtime object with values?

Maybe a long shot, but if this existed it would save me some time. To explain in more detail. Let's say I have a long XML file and a mapped class. I want to test stuff and change values around before I run a test. I could re-construct the whole XML…
valorl
  • 1,499
  • 2
  • 14
  • 30
3
votes
2 answers

How to get AutoRest to split out API's by controller

Right now I am using: AutoRest\AutoRest.exe -Input %jsonUrl% -Namespace %projectName%ClientAutoGen -OutputDirectory %projectName%Client To generate my ASP.NET Core Rest Client. The annoyance is that AutoRest creates a single file/class for all of…
Serj Sagan
  • 28,927
  • 17
  • 154
  • 183
3
votes
1 answer

Why do I get this error with auto-generated framework headers in Swift?

In my Swift code (in a Framework), I extend UIColor to support the multiplication and addition operators like this: public protocol Interpolatable { static func * (lhs: Self, rhs: Double) -> Self static func + (lhs: Self, rhs: Self) ->…
jhabbott
  • 18,461
  • 9
  • 58
  • 95
3
votes
2 answers

Angular CLI (Angular2) and WebStorm: How can I create a route within WebStorm?

WebStorm (Version >= 2006.2.EAP) provides Angular-CLI to create new Angular2 Projects out of the box. The question now is: How can I create a new route (with all the necessary files: component, html-tpl, spec.ts, e2e.specs, etc..) on the fly within…
user3025289