Questions tagged [telosys]
Use this tag for all Telosys related questions (usage, concepts, code generation, templates, tooling, etc)
33
questions
0
votes
1
answer
18
views
Telosys says "0 tables found"
I'm using Telosys to generate Java entities from an Oracle DB. The initial cdb dbname command is successful.
telosys#(mymodel)>cdb crisdev
Checking database 'crisdev'...
OK, connection test is ...
0
votes
1
answer
30
views
How to provide Input to Telosys code generator
I am a complete beginner with telosys. I have been through the documentation and the youtube video for an introduction, however, I can't seem to understand where the input to the templates comes from.
...
0
votes
1
answer
26
views
Telosys - Intended Usage of @Package Annotation
The documentation for @Package simply states that a user can specify the package the entity belongs to. I do not see any usage of this annotation in the examples provided for Java classes. I have ...
0
votes
2
answers
33
views
Telosys Type Overriding - `timestamp` -> `OffsetDateTime`
My entities contain a timestamp attribute that is getting converted to a LocalDateTime as the docs specify. However, I would like to convert the timestamp into an OffsetDateTime. Is there any way to ...
2
votes
3
answers
78
views
Telosys & Maven Modules - Code Generation Across Several Modules
I have a Maven project with several submodules inside of it. They are packaged up so that I can reuse the code across several microservices. I can generate my Java classes in the parent project as I ...
0
votes
1
answer
43
views
ManyToMany relationship in Telosys doesn't work
I'm trying to generate a many to many relationship in Telosys, but it seems that it doesn't work. Automatic new model creation (nm command) generates the below code (with all "one to many" ...
1
vote
1
answer
36
views
Telosys - default values not getting generated for fields
I am using Java7 persistence with Spring Data JPA template to generate my DAL classes using Telosys generator. While my database has default values set for all the columns, my template fails to ...
0
votes
1
answer
51
views
Telosys 3 not generating Identity annotation
I am using Telosys to generate my DAL layer from database and it is working smoothly. However I have noticed that it only generates field annotation for Identity fields as AUTO
@GeneratedValue(...
0
votes
1
answer
247
views
Change schema name for different environment in JPA annotation in Telosys generated code
I am generating my classes using spring jpa template in Telosys generator tool. It works as expected, however, my project has different database schemas for different environment which I can't handle. ...
1
vote
1
answer
158
views
No configuration for database at org.telosys.tools.commons.dbcfg.DbConnectionManager.getConnection (line 76)
I am trying to get all entities (in STS) from an existing MYSQL data model.
I have been researching many tools, and finally decided to use 'telosys'.
This marketplace tool allows you to easily obtain ...
0
votes
2
answers
78
views
Map not working when trying to get by entity name
I am using Telosys tool to generate entity classes and it is doing wonders for me.
However I have a specific requirement to change some attributes of entities.
I have loaded all the attributes that ...
1
vote
1
answer
150
views
How to generate Records with links using Telosys
I am using Telosys templates to generate code for data entities. I used template where I can generate entity classes with links i.e. with relationships to other entities. However the DTO records ...
0
votes
3
answers
171
views
Generating Class in c# that inherits a generic class which uses type parameter using Telosys code generation tool
I have a need to generate C# code for my Country entity that will inherit from a base Entity class providing stong typed argument to denote the fact that my PK (@id) is of type Guid that is Id ...
0
votes
1
answer
46
views
Can telosys generation invoke external program prior to writing to target location and based on the return value continue or cancel writing to target
I want to generate c# asp.net core razor pages with many projects: Application, Domain, Infrastructure, Core etc.
I would like to know if Telosys is extensible to allow a custom console program to be ...
0
votes
2
answers
170
views
Using Telosys DSL model to generate code for asp.net core razor pages (solution with multiple projects)
I know there is an example of code generation for asp.net mvc
Q1: I want to know how to map standard variables (which seem to be java specific) to
.net folders in a solution.
# ------------------------...
3
votes
2
answers
567
views
How to Generate Spring JPA Entities Given Database Model (Telosys)?
I am currently using Telosys to help me generate Spring JPA Entity Classes from an existing database. So far, I could generate the repository, service, provider directory by using java7-persistence-...
2
votes
1
answer
124
views
Generate a single file with Telosys
how are you? I am learning how to use Telosys to make a code generator for Arduino, I was wondering if there is a way to create a single file for all the entities in my DSL. For example, I have the ....
0
votes
1
answer
83
views
Can I use the Telosys wizard without installing Eclipse?
I am trying to learn telosys. The eclipse demo seems great.
However, I tried to install the plugin for VSCode, and it did not add any option/menu item anywhere in the VSCode editor.
The eclipse demo ...
2
votes
1
answer
186
views
How to generate @OneToOne and @ManyToMany JPA relations in Telosys using Dsl Model
Im trying to generate classes using my own springboot template and Dsl models. In my ".entity" files I have:
Car {
id : int { @Id, @AutoIncremented };
users : Employee [];
}...
1
vote
1
answer
157
views
Telosys Timestamp Generation Date problem (missing nanosecond precision)
Telosys generates timestamp columns like that:
@Temporal(TemporalType.TIMESTAMP)
@Column(name="AKT_TS")
private Date aktTs;
Unfortunately Date does only have millisecond precision, not ...
1
vote
1
answer
238
views
Problem generating entity with links using Dsl model in Telosys
Im trying to generate JPA enitites using a dsl model in Telosys.
My Dsl model:
Car {
id : int { @Id, @AutoIncremented };
user : Employee;
}
Employee {
id : long { @...
2
votes
1
answer
180
views
How can I add Telosys repos as Maven dependencies?
Im trying to add telosys as a maven dependency but Im enable to do it because its not published on Maven Central. I also tried to use jitpack but it doesnt work. Is there any way to do this?
Telosys ...
1
vote
1
answer
110
views
Telosys does not generate column definition (i.e. for CHAR-columns)
When using Telosys to generate entities with the java7-persistence-commons-jpa-T300 templates the column annotation never includes columnDefinition when generating the @Column annotation in JpaRecord-...
4
votes
1
answer
157
views
Variables in templates.cfg in Telosys
There are some variables in templates.cfg that could be used, like ${SRC} , ${ROOT_PKG} , ${BEANNAME} , ...
I would like to know the list of variables that could be used, and also it if it possible to ...
4
votes
1
answer
220
views
Is it possible in a Telosys template to call a function created specifically?
I use Telosys (https://www.telosys.org) to generate Python source code and it works fine. But I have a specific need that could be solved by calling a specific conversion function.
Is it possible to ...
1
vote
1
answer
521
views
Telosys cannot connect to database
I am trying to setup Telosys to work with VS Code to generate entities from a MySQL database. But when I type "cdb" to check the connection, it gives the error:
[ERROR] Exception class : ...
2
votes
2
answers
418
views
Browse a directory in Velocity Template Language with Telosys
I am trying to write templates in VTL to generate java classes with telosys. My starting point is a directory (src/main/resources/templates/es) that contains json files (mapping1.json, mapping2.json, ....
3
votes
1
answer
121
views
How to change Telosys default types according with the target language?
It seems Telosys code generator uses Java types by default.
For example, if a field type is “int” in the model the language type generated is “Integer” (or “int” if “@PrimitiveType” or “@NotNull”).
...
4
votes
1
answer
124
views
Telosys - How to generate files outside the current project location?
I'm using Telosys code generator (the CLI tool).
Is it possible to generate files outside Telosys Tools project ?
0
votes
2
answers
828
views
Telosys code generation fails when the table has foreign key
I have a issue when generating code using Telosys.
After configuring all the information, when I click on Create model
I get the following issue:
If I remove foreign key from table and click Create ...
2
votes
1
answer
909
views
How to set the JDBC driver JAR in Telosys CLI to create a dbmodel
I use Telosys Eclipse Plugin regularly to generate my Java code from a “dbmodel” built from a PostgreSQL database. In Eclipse with a Java Project the JDBC driver is already in the Java Build Path so ...
1
vote
1
answer
1k
views
Telosys tools Java - Generate CRUD UI from MySQL database, BeanCreationException
I want to develop basic create, read, update and delete functionality for a MySQL database that I have using Spring 4.1.1 and Hibernate 4.3.6.
I am trying to use Telosys tools for the purpose but ...
2
votes
1
answer
2k
views
Telosys : How can i get database table records in template?
I am using Telosys tools for code generation. It's very nice tool and help me a lot.
But there is one problem, that is, it provides database schema information and i can access in templates (...