The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.
Questions tagged [auto-generate]
654 questions
6
votes
6 answers
Visual Studio 2022 not showing syntax errors and Intellisense is not working properly
Working on a project I made a class with properties and when I tried to auto-generate a class constructor I got an error saying something on lines of "auto generation of class constructor failed... and will be disabled" and ever sense then the…

JDD_11
- 63
- 1
- 1
- 3
6
votes
3 answers
How should I generate unique IDs for a bunch of objects?
I have an array consisting of A LOT of Symbol objects:
var symbols = {
alpha : new Symbol('alpha', 'symbol_0', 'α', 'GreekSymbol'),
beta : new Symbol('beta', 'symbol_1', 'β', 'GreekSymbol'),
gamma : new Symbol('gamma',…

Hristo
- 45,559
- 65
- 163
- 230
6
votes
1 answer
Using sequence in MySQL and Hibernate
I'm working on a project that uses Hibernate and MySQL. I intend to use sequence to generate ID for all tables in database. (It's hard to describe my question, so I will show you as an example).
For example: I have 2 tables A & B. Firstly, I insert…

Đinh Hồng Châu
- 5,300
- 15
- 53
- 90
6
votes
0 answers
Typewriter split multiple classes from one c# file into their own file ts files
I have one c# file called FooBar.cs with two classes in it. These classes cannot be moved into their own separate C# files (as much as I would like to).
[ExportToTypescript("Foo.ts")]
public class Foo
{
String prop1 { get; set; }
String…

Richard Watts
- 954
- 2
- 8
- 21
6
votes
2 answers
Auto generate toString method in a lot of entities
I got a lot of entities, 160 to be specific. I need to override toString method in all of them.
My question is: Is there some shortcut on Intellij or some external tool where I can auto generate toString method in all of those entities?

KiKo
- 1,668
- 7
- 27
- 56
6
votes
2 answers
Automate JavaScript Interop in Dart
When using a third-party JavaScript library in my Dart project, I manually go through the library's documentation and iterate through its properties and methods to build the Dart code through a series of tedious context and callMethod calls. Has…

Damon
- 826
- 1
- 10
- 25
6
votes
0 answers
How can I use IDEA IntelliJ to automatically generate Foreign Key dependencies between tables?
I know it's not specifically a programming question, more like a how-to-use-an-IDE question, but at least the context seems appropriate.
I already sought the problem out and found this link…

Andy David
- 83
- 5
6
votes
4 answers
Git rebase failure with auto-generated file
I'm working on a code base where one file is autogenerated and changes very frequently. I find that rebasing my local branch usually results in falling back to three way merges and failure on this file. I then have to fix the file up and continue,…

Component 10
- 10,247
- 7
- 47
- 64
6
votes
0 answers
JPA: Why GenerationType.AUTO could not be used with InheritanceType.TABLE_PER_CLASS strategy
Could somebody explain why InheritanceType.TABLE_PER_CLASS could not use the GenerationType.AUTO strategy for primary key value generation when mapping inheritance?

skip
- 12,193
- 32
- 113
- 153
6
votes
6 answers
Python - how to generate list of variables with new number at end
What I would like to do is find a more concise way of creating variables of empty lists that will be similar to each other, with the exception of different numbers at the end.
#For example:
var1 = []
var2 = []
var3 = []
var4 = []
#...
varN =…

SchoonSauce
- 291
- 1
- 3
- 14
6
votes
2 answers
How to generate a hibernate ID with auto generate with a starting value
Hi I have written code like this
@Id
@Column(nullable=false)
@GeneratedValue(strategy=GenerationType.AUTO)
public int getUserID() {
return UserID;
}
But I manually setting it from DAO like "e.setUserID(01);" to insert.Otherwise row not…

Vidya
- 145
- 1
- 1
- 9
5
votes
3 answers
How to annotate id so it's autoincrements without SEQUENCE table?
I have a trouble generating id's for new entities, i tried:
@Id
@GeneratedValue
private Long myId;
and
@Id
@GeneratedValue(generator="increment")
@GenericGenerator(name="increment", strategy = "increment")
private Long myId;
but on…

bunnyjesse112
- 747
- 6
- 27
- 44
5
votes
6 answers
ASP.net not generating javascript for some User Agents
********************Edit 2**********************
I figured out the problem... But I don't like the implications. I was testing our iPhone targeted mobile application earlier and using a plugin to mask Firefox's User Agent String as an iPhone.
.Net…

Birk
- 2,173
- 4
- 21
- 26
5
votes
2 answers
flutter auto route generator error : [dynamic] is not a class
when I am trying to generate the routes for my app using flutter pub run build_runner build
I'm getting an error and the generated class can't be generated
I only see [dynamic] is not a class in the generated class

Yasser Omar Jammeli
- 53
- 1
- 5
5
votes
1 answer
Generate `Objects.requireNonNull` lines for each argument automatically in IntelliJ?
Might there be a way in IntelliJ 2018 to auto-generate the lines of code checking for null values passed in any argument?
I want IntelliJ to change this:
// ----------| Constructor |-----------------------------------
public DailyProduct (…

Basil Bourque
- 303,325
- 100
- 852
- 1,154