The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.
Questions tagged [auto-generate]
654 questions
9
votes
3 answers
Sparx Enterprise Architect conversion (from source to UML)
I need to make a UML class diagram for a project. I used Sparx Enterprise Architect in the past to generate source code from a diagram so I'm using that.
The project is complete so all of the code is done and I don't really want to write all the…

user228938
- 187
- 1
- 2
- 6
8
votes
2 answers
Force WPF DataGrid to regenerate itself
I have a custom control which inherits from DataGrid and is basically a 2D DataGrid (accepts an ItemsSource with two dimensions, such as double[,] ).
I added a specific DependencyProperty which is ColumnHeaders and RowHeaders so I can define…

Damascus
- 6,553
- 5
- 39
- 53
8
votes
2 answers
How can I compile auto-generated C files in pre-build?
I have an Eclipse project that I need to auto-generate some files before compiling it. I do not want to put this auto-generated files in my repository, so each time I compile the projetct I perform a pre-build to auto-generate this files.
The…

Eduardo Montenegro
- 81
- 2
8
votes
1 answer
Android Room auto-generate and initialization
I have a Room database that contains Stuff entities. These entities have an ID that will be auto-generated:
@Entity(tableName = "stuff")
data class Stuff(val text: String) {
@PrimaryKey(autoGenerate = true) var id: Int = 0
}
There are two…

Touloudou
- 2,079
- 1
- 17
- 28
7
votes
9 answers
Generating UI from DB - the good, the bad and the ugly?
I've read a statement somewhere that generating UI automatically from DB layout (or business objects, or whatever other business layer) is a bad idea. I can also imagine a few good challenges that one would have to face in order to make something…

Vilx-
- 104,512
- 87
- 279
- 422
7
votes
1 answer
How to auto generate docstrings in PyCharm for dataclasses?
Is there a way for auto generating docstrings for dataclasses in the same fashion of the method and function docstrings? I did not find anything useful through help / search
from dataclasses import dataclass
@dataclass
class ExtractionConfig:
…
user12690225
7
votes
2 answers
JPA @EmbeddedId is not generating sequence
I have a table which has composite primary key consisting one sequence and two foreign keys
I am able to persist My entity class but it is not generating according to the sequence. The table which has composite primary key consisting one sequence…

nightfly
- 425
- 2
- 8
- 18
7
votes
4 answers
How to generate unit tests for existing Angular2 app with Jasmine Karma
I joined a team developing an Angular2 app that needs all the unit tests to be done with the Jasmine framework.
I was wondering if there is a tool capable of generating spec files for each class (sort of a boiler plate code) by placing test cases…

Mehdi
- 2,263
- 1
- 18
- 26
7
votes
4 answers
Java - How to overcome the maximum method size in automatically-generated code
I have an unusual requirement: My application generates Java code automatically from a very long script (written in a dynamically-typed language). The script is so long that I hit the maximum method size of 65k of the JVM.
The script consists only…

Eric Leibenguth
- 4,167
- 3
- 24
- 51
7
votes
4 answers
How to autogenerate random password in asp.net mvc application?
No need to write it again... the question says it all.

Fraz Sundal
- 10,288
- 22
- 81
- 132
7
votes
2 answers
ASP.NET auto-generate aspx.designer.cs turn off?
As I'm working on a asp.net/c# project, I'm confronted with the foobar.aspx.designer.cs that auto generates it's content. eg, when I'm changing the code/designer, the designer.cs automatically updates it's content.
As I'm bit of a control-dude, I'd…

Joris
- 731
- 3
- 13
- 21
7
votes
4 answers
Azure blob storage - auto generate unique blob name
I am writing a small web application for Windows Azure, which should use the blob storage for, obviously, storing blobs.
Is there a function or a way to automatically generate a unique name for a blob on insert?

Emiswelt
- 3,909
- 1
- 38
- 56
7
votes
6 answers
Freeze asp.net grid view column
How can i freeze initial 2 -3 leftmost column in asp.net grid view? so that while horizontal scrolling initial 2 - 3 columns that got freezes will always be display.
Any answers??

ramya
- 2,350
- 6
- 31
- 57
7
votes
1 answer
ExcludeFromCodeCoverage Exclude Auto-Generated Code
Is there a way to mark an auto-generated class as ExcludeFromCodeCoverage. I am using that attribute in other areas and works great. But if you open the code of the auto-generated guy and mark the classes as ExcludeFromCodeCoverage, once you…

Adam
- 3,615
- 6
- 32
- 51
6
votes
5 answers
Sqlite insert into with unique names, getting id
I have a list of strings to insert into a db. They MUST be unique. When i insert i would like their ID (to use as a foreign key in another table) so i use last_insert_rowid. I get 2 problems.
If i use replace, their id
(INTEGER PRIMARY KEY) updates…
user34537