Questions tagged [telosys]

Use this tag for all Telosys related questions (usage, concepts, code generation, templates, tooling, etc)

Telosys is an Open Source code generator.

It generates the plumbing and repetitive code for any kind of language or framework.

It provides two tools :

The code generator is using templates based on Apache Velocity template language.

The generation process can be described in 3 steps :

  1. Define a lightweight model (from an existing relational database or from scratch with text files)
  2. Get or create templates for the targeted language or framework (some templates are available on GitHub)
  3. Launch the generation

Tagging Recommendation:

Use the tag for all Telosys related questions.


References

34 questions
1
vote
1 answer

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 nanosecond (but the DB has of course). Example: Date (Java):…
Maik Kwi
  • 89
  • 1
  • 7
1
vote
1 answer

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 {​​​​​ @Id }​​​​​ ; name : string ; cars : Car[]…
1
vote
1 answer

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-classes. That forces database schemageneration…
Maik Kwi
  • 89
  • 1
  • 7
1
vote
1 answer

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 : TelosysToolsException [ERROR] Exception message : Cannot…
Philip
  • 638
  • 1
  • 8
  • 22
1
vote
1 answer

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 after I complete every step on the tutorial I get…
Nikhil Girraj
  • 1,135
  • 1
  • 15
  • 33
0
votes
1 answer

Telosys not picking up schema from mySql DB using Xampp

I'm attempting to use Telosys to extract entities, but Telosys is unable to recognize the schema from the locally hosted Mysql database using Xampp. Connection Tried : Changing URl from jdbc:mysql://localhost:3306 to…
0
votes
1 answer

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 successful. When I connect exactly like that in Sql…
gene b.
  • 10,512
  • 21
  • 115
  • 227
0
votes
1 answer

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. I have made the following entity Feature { …
Har
  • 3,727
  • 10
  • 41
  • 75
0
votes
1 answer

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 taken to using the following syntax for package…
Michael Ressler
  • 851
  • 1
  • 9
  • 17
0
votes
2 answers

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 override the default conversion behavior? This…
Michael Ressler
  • 851
  • 1
  • 9
  • 17
0
votes
1 answer

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" relationships – and the join table users_roles is recognized…
Magnus
  • 41
  • 1
  • 1
  • 2
0
votes
1 answer

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(strategy=GenerationType.AUTO) I have in my database…
Sandiip Patil
  • 456
  • 1
  • 4
  • 21
0
votes
1 answer

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. So my entity classes need to have respective…
Sandiip Patil
  • 456
  • 1
  • 4
  • 21
0
votes
2 answers

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 need to be changed in a map and parsed it in my…
Sandiip Patil
  • 456
  • 1
  • 4
  • 21
0
votes
3 answers

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 property on the base class having implictly type…
Rad
  • 933
  • 1
  • 15
  • 32